Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phragment/storage/PhragmentSnapshot.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | public function delete() { | ||||
return $result; | return $result; | ||||
} | } | ||||
/* -( Policy Interface )--------------------------------------------------- */ | /* -( Policy Interface )--------------------------------------------------- */ | ||||
public function getCapabilities() { | public function getCapabilities() { | ||||
return array( | return $this->getPrimaryFragment()->getCapabilities(); | ||||
PhabricatorPolicyCapability::CAN_VIEW | |||||
); | |||||
} | } | ||||
public function getPolicy($capability) { | public function getPolicy($capability) { | ||||
return $this->getPrimaryFragment()->getPolicy($capability); | return $this->getPrimaryFragment()->getPolicy($capability); | ||||
} | } | ||||
public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | public function hasAutomaticCapability($capability, PhabricatorUser $viewer) { | ||||
return $this->getPrimaryFragment() | return $this->getPrimaryFragment() | ||||
->hasAutomaticCapability($capability, $viewer); | ->hasAutomaticCapability($capability, $viewer); | ||||
} | } | ||||
public function describeAutomaticCapability($capability) { | public function describeAutomaticCapability($capability) { | ||||
return $this->getPrimaryFragment() | return $this->getPrimaryFragment() | ||||
->describeAutomaticCapability($capability); | ->describeAutomaticCapability($capability); | ||||
} | } | ||||
} | } |