Page MenuHomePhabricator

D13489.id.diff
No OneTemporary

D13489.id.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 19 2024, 1:04 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727123
Default Alt Text
D13489.id.diff (827 B)

Event Timeline