Rename policy capabilities
Summary: Ref T5655. Rename `PhabricatorPolicyCapability` subclasses for consistency. Test Plan: Browsed a few applications, nothing seemed broken. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: epriestley, Korvin, hach-que Maniphest Tasks: T5655 Differential Revision: https://secure.phabricator.com/D10037
This commit is contained in:
@@ -58,7 +58,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
|
||||
|
||||
protected function getCustomCapabilities() {
|
||||
return array(
|
||||
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY => array(
|
||||
PhabricatorOAuthServerCreateClientsCapability::CAPABILITY => array(
|
||||
'default' => PhabricatorPolicies::POLICY_ADMIN,
|
||||
),
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
final class PhabricatorOAuthServerCapabilityCreateClients
|
||||
final class PhabricatorOAuthServerCreateClientsCapability
|
||||
extends PhabricatorPolicyCapability {
|
||||
|
||||
const CAPABILITY = 'oauthserver.create';
|
||||
@@ -29,7 +29,7 @@ final class PhabricatorOAuthClientEditController
|
||||
$is_new = false;
|
||||
} else {
|
||||
$this->requireApplicationCapability(
|
||||
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY);
|
||||
PhabricatorOAuthServerCreateClientsCapability::CAPABILITY);
|
||||
|
||||
$client = PhabricatorOAuthServerClient::initializeNewClient($viewer);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user