Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14026058
D7758.id17548.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
667 B
Referenced Files
None
Subscribers
None
D7758.id17548.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7758: Fix Phortune so it allows users to create their accounts implicitly
Attached
Detach File
Event Timeline
Log In to Comment