Page MenuHomePhabricator

D11727.id28260.diff
No OneTemporary

D11727.id28260.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
Oct 21 2024, 3:08 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6737955
Default Alt Text
D11727.id28260.diff (649 B)

Event Timeline