1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 11:12:42 +01:00
phorge-phorge/src/applications/policy/rule/PhabricatorAdministratorsPolicyRule.php
Joshua Spence 8b7561776f Rename PhabricatorPolicyRule subclasses for consistency
Summary: Ref T5655.

Test Plan: `arc lint` and `arc unit`

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T5655

Differential Revision: https://secure.phabricator.com/D11131
2015-01-02 15:24:44 +11:00

17 lines
355 B
PHP

<?php
final class PhabricatorAdministratorsPolicyRule extends PhabricatorPolicyRule {
public function getRuleDescription() {
return pht('administrators');
}
public function applyRule(PhabricatorUser $viewer, $value) {
return $viewer->getIsAdmin();
}
public function getValueControlType() {
return self::CONTROL_TYPE_NONE;
}
}