Page MenuHomePhabricator

D7758.id17548.diff
No OneTemporary

D7758.id17548.diff

Index: src/applications/phortune/storage/PhortuneAccount.php
===================================================================
--- src/applications/phortune/storage/PhortuneAccount.php
+++ src/applications/phortune/storage/PhortuneAccount.php
@@ -46,7 +46,12 @@
}
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) {

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 11:02 PM (4 d, 5 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6725300
Default Alt Text
D7758.id17548.diff (667 B)

Event Timeline