mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 09:42:41 +01:00
cf2eb0dd5f
Summary: Move some `PhabricatorPolicyRule` implementations to a subdirectory of the parent application. Test Plan: N/A Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D14478
20 lines
404 B
PHP
20 lines
404 B
PHP
<?php
|
|
|
|
final class PhabricatorAdministratorsPolicyRule extends PhabricatorPolicyRule {
|
|
|
|
public function getRuleDescription() {
|
|
return pht('administrators');
|
|
}
|
|
|
|
public function applyRule(
|
|
PhabricatorUser $viewer,
|
|
$value,
|
|
PhabricatorPolicyInterface $object) {
|
|
return $viewer->getIsAdmin();
|
|
}
|
|
|
|
public function getValueControlType() {
|
|
return self::CONTROL_TYPE_NONE;
|
|
}
|
|
|
|
}
|