mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
Rename ACTION_ACCEPT into ACTION_ALLOW
Summary: Ref T603. This is "Allow" in the UI, I just mistyped it when I created the constant. Test Plan: `grep` Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7296
This commit is contained in:
parent
3f5a7b31c8
commit
6c1b00fa40
3 changed files with 5 additions and 5 deletions
|
@ -41,7 +41,7 @@ final class PhabricatorPolicyDataTestCase extends PhabricatorTestCase {
|
|||
->setRules(
|
||||
array(
|
||||
array(
|
||||
'action' => PhabricatorPolicy::ACTION_ACCEPT,
|
||||
'action' => PhabricatorPolicy::ACTION_ALLOW,
|
||||
'rule' => 'PhabricatorPolicyRuleUsers',
|
||||
'value' => array($user_a->getPHID()),
|
||||
),
|
||||
|
@ -77,7 +77,7 @@ final class PhabricatorPolicyDataTestCase extends PhabricatorTestCase {
|
|||
->setRules(
|
||||
array(
|
||||
array(
|
||||
'action' => PhabricatorPolicy::ACTION_ACCEPT,
|
||||
'action' => PhabricatorPolicy::ACTION_ALLOW,
|
||||
'rule' => 'PhabricatorPolicyRuleAdministrators',
|
||||
'value' => null,
|
||||
),
|
||||
|
@ -111,7 +111,7 @@ final class PhabricatorPolicyDataTestCase extends PhabricatorTestCase {
|
|||
->setRules(
|
||||
array(
|
||||
array(
|
||||
'action' => PhabricatorPolicy::ACTION_ACCEPT,
|
||||
'action' => PhabricatorPolicy::ACTION_ALLOW,
|
||||
'rule' => 'PhabricatorPolicyRuleLunarPhase',
|
||||
'value' => 'new',
|
||||
),
|
||||
|
|
|
@ -396,7 +396,7 @@ final class PhabricatorPolicyFilter {
|
|||
$action = $policy->getDefaultAction();
|
||||
}
|
||||
|
||||
if ($action === PhabricatorPolicy::ACTION_ACCEPT) {
|
||||
if ($action === PhabricatorPolicy::ACTION_ALLOW) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
final class PhabricatorPolicy
|
||||
extends PhabricatorPolicyDAO {
|
||||
|
||||
const ACTION_ACCEPT = 'accept';
|
||||
const ACTION_ALLOW = 'allow';
|
||||
const ACTION_DENY = 'deny';
|
||||
|
||||
private $name;
|
||||
|
|
Loading…
Reference in a new issue