@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

Improve help for "bin/policy unlock" to make it explicit that you can name objects with a PHID

Summary: See <https://discourse.phabricator-community.org/t/how-to-unlock-a-portal-to-view-edit-it-as-an-admin-similar-to-tasks/4547/>.

Test Plan: Ran `bin/policy help unlock`, saw explicit "you can use a PHID" documentation.

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

+10 -3
+10 -3
src/applications/policy/management/PhabricatorPolicyManagementUnlockWorkflow.php
··· 8 8 ->setName('unlock') 9 9 ->setSynopsis( 10 10 pht( 11 - 'Unlock an object which has policies that prevent it from being '. 12 - 'viewed or edited.')) 13 - ->setExamples('**unlock** --view __user__ __object__') 11 + 'Unlock one or more objects by changing their view policies, edit '. 12 + 'policies, or owners.')) 13 + ->setHelp( 14 + pht( 15 + 'Identify each __object__ by passing an object name '. 16 + '(like "T123") or a PHID (like "PHID-ABCD-1234...").'. 17 + "\n\n". 18 + 'Not every type of object has an editable view policy, edit '. 19 + 'policy, or owner, so not all modes will work with all objects. ')) 20 + ->setExamples('**unlock** --view __user__ __object__ ...') 14 21 ->setArguments( 15 22 array( 16 23 array(