Page MenuHomePhabricator

D13489.diff
No OneTemporary

D13489.diff

diff --git a/src/applications/phid/query/PhabricatorHandleQuery.php b/src/applications/phid/query/PhabricatorHandleQuery.php
--- a/src/applications/phid/query/PhabricatorHandleQuery.php
+++ b/src/applications/phid/query/PhabricatorHandleQuery.php
@@ -37,6 +37,12 @@
->requireCapabilities($this->getRequiredObjectCapabilities())
->setViewer($this->getViewer());
+ // We never want the subquery to raise policy exceptions, even if this
+ // query is being executed via executeOne(). Policy exceptions are not
+ // meaningful or relevant for handles, which load in an "Unknown" or
+ // "Restricted" state after encountering a policy violation.
+ $object_query->setRaisePolicyExceptions(false);
+
$objects = $object_query->execute();
$filtered = $object_query->getPolicyFilteredPHIDs();

File Metadata

Mime Type
text/plain
Expires
Oct 20 2024, 6:31 PM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727123
Default Alt Text
D13489.diff (827 B)

Event Timeline