1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Update the "owner can always view/edit" policy exception rule

Summary: Fixes T13460. This rule vanished from the UI in D20165; update things so it returns to the UI.

Test Plan: {F7035134}

Maniphest Tasks: T13460

Differential Revision: https://secure.phabricator.com/D20917
This commit is contained in:
epriestley 2019-11-18 21:40:10 -08:00
parent e86aae99de
commit 1996b0cd55
2 changed files with 9 additions and 4 deletions

View file

@ -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(

View file

@ -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 )---------------------------------- */