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:
Joshua Spence
2014-07-25 08:20:39 +10:00
parent 3927e66959
commit c34de83619
110 changed files with 258 additions and 301 deletions

View File

@@ -58,7 +58,7 @@ final class PhabricatorOAuthServerApplication extends PhabricatorApplication {
protected function getCustomCapabilities() {
return array(
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY => array(
PhabricatorOAuthServerCreateClientsCapability::CAPABILITY => array(
'default' => PhabricatorPolicies::POLICY_ADMIN,
),
);

View File

@@ -1,6 +1,6 @@
<?php
final class PhabricatorOAuthServerCapabilityCreateClients
final class PhabricatorOAuthServerCreateClientsCapability
extends PhabricatorPolicyCapability {
const CAPABILITY = 'oauthserver.create';

View File

@@ -29,7 +29,7 @@ final class PhabricatorOAuthClientEditController
$is_new = false;
} else {
$this->requireApplicationCapability(
PhabricatorOAuthServerCapabilityCreateClients::CAPABILITY);
PhabricatorOAuthServerCreateClientsCapability::CAPABILITY);
$client = PhabricatorOAuthServerClient::initializeNewClient($viewer);