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/PhabricatorPolicyRuleAdministrators.php

19 lines
357 B
PHP
Raw Normal View History

<?php
final class PhabricatorPolicyRuleAdministrators
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;
}
}