Changeset View
Changeset View
Standalone View
Standalone View
src/applications/policy/constants/PhabricatorPolicies.php
| Show All 9 Lines | final class PhabricatorPolicies extends PhabricatorPolicyConstants { | ||||
| /** | /** | ||||
| * Returns the most public policy this install's configuration permits. | * Returns the most public policy this install's configuration permits. | ||||
| * This is either "public" (if available) or "all users" (if not). | * This is either "public" (if available) or "all users" (if not). | ||||
| * | * | ||||
| * @return const Most open working policy constant. | * @return const Most open working policy constant. | ||||
| */ | */ | ||||
| public static function getMostOpenPolicy() { | public static function getMostOpenPolicy() { | ||||
| if (PhabricatorEnv::getEnvConfig('policy.allow-public')) { | if (PhabricatorEnv::getEnvConfig('policy.allow-public')) { | ||||
| return PhabricatorPolicies::POLICY_PUBLIC; | return self::POLICY_PUBLIC; | ||||
| } else { | } else { | ||||
| return PhabricatorPolicies::POLICY_USER; | return self::POLICY_USER; | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||