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

Add Policy options.

Test Plan: Looked at the setting and available options from the dropdown.

Reviewers: epriestley, chad

Reviewed By: chad

CC: aran, Korvin

Maniphest Tasks: T2255

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

authored by

Ricky Elrod and committed by
epriestley
49b84218 712e2220

+38
+2
src/__phutil_library_map__.php
··· 1034 1034 'PhabricatorPolicyAwareQuery' => 'infrastructure/query/policy/PhabricatorPolicyAwareQuery.php', 1035 1035 'PhabricatorPolicyAwareTestQuery' => 'applications/policy/__tests__/PhabricatorPolicyAwareTestQuery.php', 1036 1036 'PhabricatorPolicyCapability' => 'applications/policy/constants/PhabricatorPolicyCapability.php', 1037 + 'PhabricatorPolicyConfigOptions' => 'applications/config/option/PhabricatorPolicyConfigOptions.php', 1037 1038 'PhabricatorPolicyConstants' => 'applications/policy/constants/PhabricatorPolicyConstants.php', 1038 1039 'PhabricatorPolicyException' => 'applications/policy/exception/PhabricatorPolicyException.php', 1039 1040 'PhabricatorPolicyFilter' => 'applications/policy/filter/PhabricatorPolicyFilter.php', ··· 2358 2359 'PhabricatorPolicyAwareQuery' => 'PhabricatorOffsetPagedQuery', 2359 2360 'PhabricatorPolicyAwareTestQuery' => 'PhabricatorPolicyAwareQuery', 2360 2361 'PhabricatorPolicyCapability' => 'PhabricatorPolicyConstants', 2362 + 'PhabricatorPolicyConfigOptions' => 'PhabricatorApplicationConfigOptions', 2361 2363 'PhabricatorPolicyException' => 'Exception', 2362 2364 'PhabricatorPolicyQuery' => 'PhabricatorQuery', 2363 2365 'PhabricatorPolicyTestCase' => 'PhabricatorTestCase',
+36
src/applications/config/option/PhabricatorPolicyConfigOptions.php
··· 1 + <?php 2 + 3 + final class PhabricatorPolicyConfigOptions 4 + extends PhabricatorApplicationConfigOptions { 5 + 6 + public function getName() { 7 + return pht("Policy"); 8 + } 9 + 10 + public function getDescription() { 11 + return pht("Options relating to object visibility."); 12 + } 13 + 14 + public function getOptions() { 15 + return array( 16 + $this->newOption('policy.allow-public', 'bool', false) 17 + ->setOptions( 18 + array( 19 + pht('Allow Public Visibility'), 20 + pht('Require Login'))) 21 + ->setSummary(pht("Allow users to set object visibility to public.")) 22 + ->setDescription( 23 + pht( 24 + "Phabricator allows you to set the visibility of objects (like ". 25 + "repositories and source code) to 'Public', which means anyone ". 26 + "on the internet can see them, even without being logged in. ". 27 + "This is great for open source, but some installs may never want ". 28 + "to make anything public, so this policy is disabled by default. ". 29 + "You can enable it here, which will let you set the policy for ". 30 + "objects to 'Public'. With this option disabled, the most open". 31 + "policy is 'All Users', which means users must be logged in to ". 32 + "view things.")), 33 + ); 34 + } 35 + 36 + }