Merge branch 'master' into redesign-2015

This commit is contained in:
epriestley
2015-06-30 11:42:42 -07:00

View File

@@ -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();