Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15284269
D20917.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20917.diff
View Options
diff --git a/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php b/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php
--- a/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php
+++ b/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php
@@ -39,6 +39,15 @@
$rules = array();
+ $rules[] = $this->newRule()
+ ->setCapabilities(
+ array(
+ PhabricatorPolicyCapability::CAN_VIEW,
+ PhabricatorPolicyCapability::CAN_EDIT,
+ ))
+ ->setDescription(
+ pht('The owner of a task can always view and edit it.'));
+
$rules[] = $this->newRule()
->setCapabilities(
array(
diff --git a/src/applications/maniphest/storage/ManiphestTask.php b/src/applications/maniphest/storage/ManiphestTask.php
--- a/src/applications/maniphest/storage/ManiphestTask.php
+++ b/src/applications/maniphest/storage/ManiphestTask.php
@@ -358,10 +358,6 @@
return false;
}
- public function describeAutomaticCapability($capability) {
- return pht('The owner of a task can always view and edit it.');
- }
-
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 9:29 AM (6 d, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224660
Default Alt Text
D20917.diff (1 KB)
Attached To
Mode
D20917: Update the "owner can always view/edit" policy exception rule
Attached
Detach File
Event Timeline
Log In to Comment