1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-22 18:28:47 +02:00
phorge-phorge/src/applications/drydock/capability/DrydockCapabilityCreateBlueprints.php
epriestley 4489204361 Add Drydock default edit/view policies and a "Create Blueprint" policy
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
2014-01-09 12:19:45 -08:00

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.');
}
}