Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15283045
D7296.id16451.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7296.id16451.diff
View Options
Index: src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php
===================================================================
--- src/applications/policy/__tests__/PhabricatorPolicyDataTestCase.php
+++ 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',
),
Index: src/applications/policy/filter/PhabricatorPolicyFilter.php
===================================================================
--- src/applications/policy/filter/PhabricatorPolicyFilter.php
+++ 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;
}
Index: src/applications/policy/storage/PhabricatorPolicy.php
===================================================================
--- src/applications/policy/storage/PhabricatorPolicy.php
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 4:49 AM (1 d, 6 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223577
Default Alt Text
D7296.id16451.diff (2 KB)
Attached To
Mode
D7296: Rename ACTION_ACCEPT into ACTION_ALLOW
Attached
Detach File
Event Timeline
Log In to Comment