[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorPolicies extends PhabricatorPolicyConstants { 4 5 const POLICY_PUBLIC = 'public'; 6 const POLICY_USER = 'users'; 7 const POLICY_ADMIN = 'admin'; 8 const POLICY_NOONE = 'no-one'; 9 10 /** 11 * Returns the most public policy this install's configuration permits. 12 * This is either "public" (if available) or "all users" (if not). 13 * 14 * @return const Most open working policy constant. 15 */ 16 public static function getMostOpenPolicy() { 17 if (PhabricatorEnv::getEnvConfig('policy.allow-public')) { 18 return PhabricatorPolicies::POLICY_PUBLIC; 19 } else { 20 return PhabricatorPolicies::POLICY_USER; 21 } 22 } 23 24 25 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |