Changeset View
Changeset View
Standalone View
Standalone View
src/applications/owners/application/PhabricatorOwnersApplication.php
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | return array( | ||||
'paths/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersPathsController', | 'paths/(?P<id>[1-9]\d*)/' => 'PhabricatorOwnersPathsController', | ||||
$this->getEditRoutePattern('edit/') | $this->getEditRoutePattern('edit/') | ||||
=> 'PhabricatorOwnersEditController', | => 'PhabricatorOwnersEditController', | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | |||||
return array( | |||||
PhabricatorOwnersDefaultViewCapability::CAPABILITY => array( | |||||
'caption' => pht('Default view policy for newly created packages.'), | |||||
'template' => PhabricatorOwnersPackagePHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_VIEW, | |||||
), | |||||
PhabricatorOwnersDefaultEditCapability::CAPABILITY => array( | |||||
'caption' => pht('Default edit policy for newly created packages.'), | |||||
'template' => PhabricatorOwnersPackagePHIDType::TYPECONST, | |||||
'capability' => PhabricatorPolicyCapability::CAN_EDIT, | |||||
), | |||||
); | |||||
} | |||||
} | } |