1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 02:02:41 +01:00
phorge-phorge/src/applications/policy/rule/PhabricatorAdministratorsPolicyRule.php

21 lines
404 B
PHP
Raw Normal View History

<?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;
}
}