Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
Show First 20 Lines • Show All 550 Lines • ▼ Show 20 Lines | final public function isCapabilityEditable($capability) { | ||||
} | } | ||||
} | } | ||||
final public function getCapabilityCaption($capability) { | final public function getCapabilityCaption($capability) { | ||||
switch ($capability) { | switch ($capability) { | ||||
case PhabricatorPolicyCapability::CAN_VIEW: | case PhabricatorPolicyCapability::CAN_VIEW: | ||||
if (!$this->canUninstall()) { | if (!$this->canUninstall()) { | ||||
return pht( | return pht( | ||||
'This application is required for Phabricator to operate, so all '. | 'This application is required, so all '. | ||||
'users must have access to it.'); | 'users must have access to it.'); | ||||
} else { | } else { | ||||
return null; | return null; | ||||
} | } | ||||
case PhabricatorPolicyCapability::CAN_EDIT: | case PhabricatorPolicyCapability::CAN_EDIT: | ||||
return null; | return null; | ||||
default: | default: | ||||
$spec = $this->getCustomCapabilitySpecification($capability); | $spec = $this->getCustomCapabilitySpecification($capability); | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |