mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
21 lines
416 B
PHP
21 lines
416 B
PHP
|
<?php
|
||
|
|
||
|
final class ProjectCapabilityCreateProjects
|
||
|
extends PhabricatorPolicyCapability {
|
||
|
|
||
|
const CAPABILITY = 'project.create';
|
||
|
|
||
|
public function getCapabilityKey() {
|
||
|
return self::CAPABILITY;
|
||
|
}
|
||
|
|
||
|
public function getCapabilityName() {
|
||
|
return pht('Can Create Projects');
|
||
|
}
|
||
|
|
||
|
public function describeCapabilityRejection() {
|
||
|
return pht('You do not have permission to create new projects.');
|
||
|
}
|
||
|
|
||
|
}
|