Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phurl/application/PhabricatorPhurlApplication.php
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | final class PhabricatorPhurlApplication extends PhabricatorApplication { | ||||
public function getShortRoutes() { | public function getShortRoutes() { | ||||
return array( | return array( | ||||
'/u/(?P<append>[^/]+)' => 'PhabricatorPhurlShortURLController', | '/u/(?P<append>[^/]+)' => 'PhabricatorPhurlShortURLController', | ||||
'.*' => 'PhabricatorPhurlShortURLDefaultController', | '.*' => 'PhabricatorPhurlShortURLDefaultController', | ||||
); | ); | ||||
} | } | ||||
protected function getCustomCapabilities() { | |||||
return array( | |||||
PhabricatorPhurlURLCreateCapability::CAPABILITY => array( | |||||
'default' => PhabricatorPolicies::POLICY_USER, | |||||
), | |||||
epriestley: For consistency, just omit this caption. In other applications, "Default Policies" (like… | |||||
); | |||||
} | |||||
} | } |
For consistency, just omit this caption. In other applications, "Default Policies" (like "Default View Policy" and "Default Edit Policy") are used to prefill "Can View" and "Can Edit" when creating new objects. This isn't a "Default" policy like those policies.