mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
7a97a71e20
Summary: Ref T603. Use the new hotness. Test Plan: Edited Herald in Applications, tried to create rules / global rules without capabilities, got reasonable error messages. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7263
20 lines
428 B
PHP
20 lines
428 B
PHP
<?php
|
|
|
|
final class HeraldCapabilityManageGlobalRules
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'herald.global';
|
|
|
|
public function getCapabilityKey() {
|
|
return self::CAPABILITY;
|
|
}
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Can Manage Global Rules');
|
|
}
|
|
|
|
public function describeCapabilityRejection() {
|
|
return pht('You do not have permission to manage global Herald rules.');
|
|
}
|
|
|
|
}
|