Page MenuHomePhabricator

D11727.diff
No OneTemporary

D11727.diff

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
@@ -411,7 +411,11 @@
$viewer = $this->viewer;
$viewer_phid = $viewer->getPHID();
- $policy = $this->customPolicies[$viewer_phid][$policy_phid];
+ $policy = idx($this->customPolicies[$viewer_phid], $policy_phid);
+ if (!$policy) {
+ // Reject, this policy is bogus.
+ return false;
+ }
$objects = $policy->getRuleObjects();
$action = null;

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 25, 7:20 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737955
Default Alt Text
D11727.diff (649 B)

Event Timeline