Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/codex/PhabricatorPolicyCodex.php
Show All 38 Lines | return PhabricatorPolicyQuery::getDefaultPolicyForObject( | ||||
$this->object, | $this->object, | ||||
$this->capability); | $this->capability); | ||||
} | } | ||||
public function compareToDefaultPolicy(PhabricatorPolicy $policy) { | public function compareToDefaultPolicy(PhabricatorPolicy $policy) { | ||||
return null; | return null; | ||||
} | } | ||||
final public function getPolicySpecialRuleForCapability($capability) { | |||||
foreach ($this->getPolicySpecialRuleDescriptions() as $rule) { | |||||
if (in_array($capability, $rule->getCapabilities())) { | |||||
return $rule; | |||||
} | |||||
} | |||||
return null; | |||||
} | |||||
epriestley: (I couldn't find any callers for this anywhere.) | |||||
final protected function newRule() { | final protected function newRule() { | ||||
return new PhabricatorPolicyCodexRuleDescription(); | return new PhabricatorPolicyCodexRuleDescription(); | ||||
} | } | ||||
final public function setViewer(PhabricatorUser $viewer) { | final public function setViewer(PhabricatorUser $viewer) { | ||||
$this->viewer = $viewer; | $this->viewer = $viewer; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines |
(I couldn't find any callers for this anywhere.)