mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-03 20:22:46 +01:00
21 lines
432 B
PHP
21 lines
432 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionCapabilityCreateRepositories
|
||
|
extends PhabricatorPolicyCapability {
|
||
|
|
||
|
const CAPABILITY = 'diffusion.create';
|
||
|
|
||
|
public function getCapabilityKey() {
|
||
|
return self::CAPABILITY;
|
||
|
}
|
||
|
|
||
|
public function getCapabilityName() {
|
||
|
return pht('Can Create Repositories');
|
||
|
}
|
||
|
|
||
|
public function describeCapabilityRejection() {
|
||
|
return pht('You do not have permission to create new repositories.');
|
||
|
}
|
||
|
|
||
|
}
|