@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
at upstream/main 20 lines 405 B view raw
1<?php 2 3final class PhabricatorPolicyCanViewCapability 4 extends PhabricatorPolicyCapability { 5 6 const CAPABILITY = self::CAN_VIEW; 7 8 public function getCapabilityName() { 9 return pht('Can View'); 10 } 11 12 public function describeCapabilityRejection() { 13 return pht('You do not have permission to view this object.'); 14 } 15 16 public function shouldAllowPublicPolicySetting() { 17 return true; 18 } 19 20}