mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 10:12:41 +01:00
19 lines
357 B
PHP
19 lines
357 B
PHP
|
<?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;
|
||
|
}
|
||
|
|
||
|
}
|