Changeset View
Changeset View
Standalone View
Standalone View
src/applications/herald/application/PhabricatorHeraldApplication.php
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | return array( | ||||
'rule/(?P<id>[1-9]\d*)/' => 'HeraldRuleViewController', | 'rule/(?P<id>[1-9]\d*)/' => 'HeraldRuleViewController', | ||||
'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', | 'edit/(?:(?P<id>[1-9]\d*)/)?' => 'HeraldRuleController', | ||||
'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' | 'disable/(?P<id>[1-9]\d*)/(?P<action>\w+)/' | ||||
=> 'HeraldDisableController', | => 'HeraldDisableController', | ||||
'test/' => 'HeraldTestConsoleController', | 'test/' => 'HeraldTestConsoleController', | ||||
'transcript/' => array( | 'transcript/' => array( | ||||
'' => 'HeraldTranscriptListController', | '' => 'HeraldTranscriptListController', | ||||
'(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | '(?:query/(?P<queryKey>[^/]+)/)?' => 'HeraldTranscriptListController', | ||||
'(?P<id>[1-9]\d*)/(?:(?P<filter>\w+)/)?' | '(?P<id>[1-9]\d*)/' | ||||
=> 'HeraldTranscriptController', | => 'HeraldTranscriptController', | ||||
), | ), | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | protected function getCustomCapabilities() { | ||||
return array( | return array( | ||||
HeraldManageGlobalRulesCapability::CAPABILITY => array( | HeraldManageGlobalRulesCapability::CAPABILITY => array( | ||||
'caption' => pht('Global rules can bypass access controls.'), | 'caption' => pht('Global rules can bypass access controls.'), | ||||
'default' => PhabricatorPolicies::POLICY_ADMIN, | 'default' => PhabricatorPolicies::POLICY_ADMIN, | ||||
), | ), | ||||
); | ); | ||||
} | } | ||||
} | } |