@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class DiffusionPushCapability extends PhabricatorPolicyCapability {
4
5 const CAPABILITY = 'diffusion.push';
6
7 public function getCapabilityName() {
8 return pht('Can Push');
9 }
10
11 public function describeCapabilityRejection() {
12 return pht('You do not have permission to push to this repository.');
13 }
14
15}