false, ) + parent::getConfiguration(); } public function attachResource(DrydockResource $resource = null) { $this->resource = $resource; return $this; } public function getResource() { return $this->assertAttached($this->resource); } /* -( PhabricatorPolicyInterface )----------------------------------------- */ public function getCapabilities() { return array( PhabricatorPolicyCapability::CAN_VIEW, ); } public function getPolicy($capability) { if (!$this->getResource()) { return PhabricatorPolicies::getMostOpenPolicy(); } return $this->getResource()->getPolicy($capability); } public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { if (!$this->getResource()) { return false; } return $this->getResource()->hasAutomaticCapability($capability, $viewer); } public function describeAutomaticCapability($capability) { return pht('Logs inherit the policy of their resources.'); } }