Differential D25101 Diff 413 src/applications/countdown/application/PhabricatorCountdownApplication.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/countdown/application/PhabricatorCountdownApplication.php
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | return array( | ||||
$this->getEditRoutePattern('edit/') | $this->getEditRoutePattern('edit/') | ||||
=> 'PhabricatorCountdownEditController', | => 'PhabricatorCountdownEditController', | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
PhabricatorCountdownCreateCapability::CAPABILITY => array( | |||||
'default' => PhabricatorPolicies::POLICY_USER, | |||||
'caption' => pht('Default create policy for countdowns.'), | |||||
), | |||||
PhabricatorCountdownDefaultViewCapability::CAPABILITY => array( | PhabricatorCountdownDefaultViewCapability::CAPABILITY => array( | ||||
'caption' => pht('Default view policy for new countdowns.'), | 'caption' => pht('Default view policy for new countdowns.'), | ||||
'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST, | 'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST, | ||||
'capability' => PhabricatorPolicyCapability::CAN_VIEW, | 'capability' => PhabricatorPolicyCapability::CAN_VIEW, | ||||
), | ), | ||||
PhabricatorCountdownDefaultEditCapability::CAPABILITY => array( | PhabricatorCountdownDefaultEditCapability::CAPABILITY => array( | ||||
'caption' => pht('Default edit policy for new countdowns.'), | 'caption' => pht('Default edit policy for new countdowns.'), | ||||
'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST, | 'template' => PhabricatorCountdownCountdownPHIDType::TYPECONST, | ||||
'capability' => PhabricatorPolicyCapability::CAN_EDIT, | 'capability' => PhabricatorPolicyCapability::CAN_EDIT, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0