Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F469603
PhabricatorPolicies.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
637 B
Referenced Files
None
Subscribers
None
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
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, May 6, 8:40 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
81551
Default Alt Text
PhabricatorPolicies.php (637 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment