Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/query/PhabricatorPolicyQuery.php
Show First 20 Lines • Show All 284 Lines • ▼ Show 20 Lines | protected function shouldDisablePolicyFiltering() { | ||||
return true; | return true; | ||||
} | } | ||||
public function getQueryApplicationClass() { | public function getQueryApplicationClass() { | ||||
return 'PhabricatorPolicyApplication'; | return 'PhabricatorPolicyApplication'; | ||||
} | } | ||||
public static function isSpecialPolicy($identifier) { | public static function isSpecialPolicy($identifier) { | ||||
if ($identifier === null) { | |||||
return true; | |||||
} | |||||
if (self::isObjectPolicy($identifier)) { | if (self::isObjectPolicy($identifier)) { | ||||
return true; | return true; | ||||
} | } | ||||
if (self::isGlobalPolicy($identifier)) { | if (self::isGlobalPolicy($identifier)) { | ||||
return true; | return true; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |