Page MenuHomePhabricator

D7296.diff

diff --git a/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php b/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php
--- a/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php
+++ b/src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php
@@ -41,7 +41,7 @@
->setRules(
array(
array(
- 'action' => PhabricatorPolicy::ACTION_ACCEPT,
+ 'action' => PhabricatorPolicy::ACTION_ALLOW,
'rule' => 'PhabricatorPolicyRuleUsers',
'value' => array($user_a->getPHID()),
),
@@ -77,7 +77,7 @@
->setRules(
array(
array(
- 'action' => PhabricatorPolicy::ACTION_ACCEPT,
+ 'action' => PhabricatorPolicy::ACTION_ALLOW,
'rule' => 'PhabricatorPolicyRuleAdministrators',
'value' => null,
),
@@ -111,7 +111,7 @@
->setRules(
array(
array(
- 'action' => PhabricatorPolicy::ACTION_ACCEPT,
+ 'action' => PhabricatorPolicy::ACTION_ALLOW,
'rule' => 'PhabricatorPolicyRuleLunarPhase',
'value' => 'new',
),
diff --git a/src/applications/policy/filter/PhabricatorPolicyFilter.php b/src/applications/policy/filter/PhabricatorPolicyFilter.php
--- a/src/applications/policy/filter/PhabricatorPolicyFilter.php
+++ b/src/applications/policy/filter/PhabricatorPolicyFilter.php
@@ -396,7 +396,7 @@
$action = $policy->getDefaultAction();
}
- if ($action === PhabricatorPolicy::ACTION_ACCEPT) {
+ if ($action === PhabricatorPolicy::ACTION_ALLOW) {
return true;
}
diff --git a/src/applications/policy/storage/PhabricatorPolicy.php b/src/applications/policy/storage/PhabricatorPolicy.php
--- a/src/applications/policy/storage/PhabricatorPolicy.php
+++ b/src/applications/policy/storage/PhabricatorPolicy.php
@@ -3,7 +3,7 @@
final class PhabricatorPolicy
extends PhabricatorPolicyDAO {
- const ACTION_ACCEPT = 'accept';
+ const ACTION_ALLOW = 'allow';
const ACTION_DENY = 'deny';
private $name;

File Metadata

Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/7v/4g/ec4msuh3zhrv2rek
Default Alt Text
D7296.diff (2 KB)

Event Timeline