Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93822246
PhabricatorPolicies.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 1, 19:12
Size
637 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 19:12 (2 d)
Engine
blob
Format
Raw Data
Handle
22710416
Attached To
rPH Phabricator
PhabricatorPolicies.php
View Options
<?php
final
class
PhabricatorPolicies
extends
PhabricatorPolicyConstants
{
const
POLICY_PUBLIC
=
'public'
;
const
POLICY_USER
=
'users'
;
const
POLICY_ADMIN
=
'admin'
;
const
POLICY_NOONE
=
'no-one'
;
/**
* Returns the most public policy this install's configuration permits.
* This is either "public" (if available) or "all users" (if not).
*
* @return const Most open working policy constant.
*/
public
static
function
getMostOpenPolicy
()
{
if
(
PhabricatorEnv
::
getEnvConfig
(
'policy.allow-public'
))
{
return
self
::
POLICY_PUBLIC
;
}
else
{
return
self
::
POLICY_USER
;
}
}
}
Event Timeline
Log In to Comment