diff --git a/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php b/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php index 638d9bfa60..4394331541 100644 --- a/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php +++ b/src/applications/maniphest/policy/ManiphestTaskPolicyCodex.php @@ -39,6 +39,15 @@ final class ManiphestTaskPolicyCodex $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 index c56d8fe57a..4f90de3507 100644 --- a/src/applications/maniphest/storage/ManiphestTask.php +++ b/src/applications/maniphest/storage/ManiphestTask.php @@ -358,10 +358,6 @@ final class ManiphestTask extends ManiphestDAO return false; } - public function describeAutomaticCapability($capability) { - return pht('The owner of a task can always view and edit it.'); - } - /* -( PhabricatorTokenReceiverInterface )---------------------------------- */