mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Merge branch 'master' into redesign-2015
This commit is contained in:
commit
09d392fdbb
1 changed files with 6 additions and 0 deletions
|
@ -37,6 +37,12 @@ final class PhabricatorHandleQuery
|
|||
->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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue