mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-23 13:08:18 +01:00
4489204361
Summary: Ref T2015. Allow configuration of default edit/view policies for blueprints. Add create policy. Remove administrative exception in policies. Test Plan: Configured these settings and created (or, with a restrictive create setting, tried to create) blueprints. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2015 Differential Revision: https://secure.phabricator.com/D7921
20 lines
436 B
PHP
20 lines
436 B
PHP
<?php
|
|
|
|
final class DrydockCapabilityCreateBlueprints
|
|
extends PhabricatorPolicyCapability {
|
|
|
|
const CAPABILITY = 'drydock.blueprint.create';
|
|
|
|
public function getCapabilityKey() {
|
|
return self::CAPABILITY;
|
|
}
|
|
|
|
public function getCapabilityName() {
|
|
return pht('Can Create Blueprints');
|
|
}
|
|
|
|
public function describeCapabilityRejection() {
|
|
return pht('You do not have permission to create Drydock blueprints.');
|
|
}
|
|
|
|
}
|