Differential D14321 Diff 34619 src/applications/harbormaster/application/PhabricatorHarbormasterApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/application/PhabricatorHarbormasterApplication.php
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | return array( | ||||
'(?P<id>\d+)/' => 'HarbormasterLintMessagesController', | '(?P<id>\d+)/' => 'HarbormasterLintMessagesController', | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
HarbormasterManagePlansCapability::CAPABILITY => array( | HarbormasterCreatePlansCapability::CAPABILITY => array( | ||||
'caption' => pht('Can create and manage build plans.'), | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
), | |||||
HarbormasterBuildPlanDefaultViewCapability::CAPABILITY => array( | |||||
'template' => HarbormasterBuildPlanPHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_VIEW, | |||||
), | |||||
HarbormasterBuildPlanDefaultEditCapability::CAPABILITY => array( | |||||
'template' => HarbormasterBuildPlanPHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_EDIT, | |||||
'default' => PhabricatorPolicies::POLICY_ADMIN, | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |