mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-29 02:02:41 +01:00
21 lines
401 B
PHP
21 lines
401 B
PHP
|
<?php
|
||
|
|
||
|
final class DiffusionCapabilityPush
|
||
|
extends PhabricatorPolicyCapability {
|
||
|
|
||
|
const CAPABILITY = 'diffusion.push';
|
||
|
|
||
|
public function getCapabilityKey() {
|
||
|
return self::CAPABILITY;
|
||
|
}
|
||
|
|
||
|
public function getCapabilityName() {
|
||
|
return pht('Can Push');
|
||
|
}
|
||
|
|
||
|
public function describeCapabilityRejection() {
|
||
|
return pht('You do not have permission to push to this repository.');
|
||
|
}
|
||
|
|
||
|
}
|