mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +01: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:
parent
e86aae99de
commit
1996b0cd55
2 changed files with 9 additions and 4 deletions
|
@ -39,6 +39,15 @@ final class ManiphestTaskPolicyCodex
|
||||||
|
|
||||||
$rules = array();
|
$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()
|
$rules[] = $this->newRule()
|
||||||
->setCapabilities(
|
->setCapabilities(
|
||||||
array(
|
array(
|
||||||
|
|
|
@ -358,10 +358,6 @@ final class ManiphestTask extends ManiphestDAO
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function describeAutomaticCapability($capability) {
|
|
||||||
return pht('The owner of a task can always view and edit it.');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
|
/* -( PhabricatorTokenReceiverInterface )---------------------------------- */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue