diff --git a/src/applications/phortune/storage/PhortuneAccount.php b/src/applications/phortune/storage/PhortuneAccount.php index 6fbb752d13..8eff081370 100644 --- a/src/applications/phortune/storage/PhortuneAccount.php +++ b/src/applications/phortune/storage/PhortuneAccount.php @@ -46,7 +46,12 @@ final class PhortuneAccount extends PhortuneDAO } public function getPolicy($capability) { - return PhabricatorPolicies::POLICY_NOONE; + if ($this->getPHID() === null) { + // Allow a user to create an account for themselves. + return PhabricatorPolicies::POLICY_USER; + } else { + return PhabricatorPolicies::POLICY_NOONE; + } } public function hasAutomaticCapability($capability, PhabricatorUser $viewer) {