mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-22 12:41:19 +01:00
3410cbd53e
Summary: Ref T603. Give countdowns proper UI-level policy controls, and an application-level default policy. Put policy information in the header. Test Plan: - Adjusted default policy. - Created new countdowns. - Edited countdowns. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7322
20 lines
384 B
PHP
20 lines
384 B
PHP
<?php
|
|
|
|
final class PhabricatorCountdownCapabilityDefaultView
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'countdown.default.view';
|
|
|
|
public function getCapabilityKey() {
|
|
return self::CAPABILITY;
|
|
}
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Default View Policy');
|
|
}
|
|
|
|
public function shouldAllowPublicPolicySetting() {
|
|
return true;
|
|
}
|
|
|
|
}
|