@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
fork

Configure Feed

Select the types of activity you want to include in your feed.

at recaptime-dev/main 38 lines 919 B view raw
1<?php 2 3final class HarbormasterBuildPlanPolicyCodex 4 extends PhabricatorPolicyCodex { 5 6 public function getPolicySpecialRuleDescriptions() { 7 $object = $this->getObject(); 8 $run_with_view = $object->canRunWithoutEditCapability(); 9 10 $rules = array(); 11 12 $rules[] = $this->newRule() 13 ->setCapabilities( 14 array( 15 PhabricatorPolicyCapability::CAN_EDIT, 16 )) 17 ->setIsActive(!$run_with_view) 18 ->setDescription( 19 pht( 20 'You must have edit permission on this build plan to pause, '. 21 'abort, resume, or restart it.')); 22 23 $rules[] = $this->newRule() 24 ->setCapabilities( 25 array( 26 PhabricatorPolicyCapability::CAN_EDIT, 27 )) 28 ->setIsActive(!$run_with_view) 29 ->setDescription( 30 pht( 31 'You must have edit permission on this build plan to run it '. 32 'manually.')); 33 34 return $rules; 35 } 36 37 38}