mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +01:00
8b7561776f
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
17 lines
355 B
PHP
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;
|
|
}
|
|
|
|
}
|