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

Show spaces in policy explanation dialogs

Summary: Ref T8449. When an object is in a space, explain that clearly in the policy description dialog.

Test Plan: {F496126}

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T8449

Differential Revision: https://secure.phabricator.com/D13264

+20
+20
src/applications/policy/controller/PhabricatorPolicyExplainController.php
··· 69 69 $capability_name = $capobj->getCapabilityName(); 70 70 } 71 71 72 + $space_info = null; 73 + if ($object instanceof PhabricatorSpacesInterface) { 74 + if (PhabricatorSpacesNamespaceQuery::getViewerSpacesExist($viewer)) { 75 + $space_phid = PhabricatorSpacesNamespaceQuery::getObjectSpacePHID( 76 + $object); 77 + 78 + $handles = $viewer->loadHandles(array($space_phid)); 79 + 80 + $space_info = array( 81 + pht( 82 + 'This object is in %s, and can only be seen by users with '. 83 + 'access to that space.', 84 + $handles[$space_phid]->renderLink()), 85 + phutil_tag('br'), 86 + phutil_tag('br'), 87 + ); 88 + } 89 + } 90 + 72 91 $content = array( 92 + $space_info, 73 93 pht('Users with the "%s" capability:', $capability_name), 74 94 $auto_info, 75 95 );