Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F531692
PhabricatorProjectsAllPolicyRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
568 B
Referenced Files
None
Subscribers
None
PhabricatorProjectsAllPolicyRule.php
View Options
<?php
final
class
PhabricatorProjectsAllPolicyRule
extends
PhabricatorProjectsBasePolicyRule
{
public
function
getRuleDescription
()
{
return
pht
(
'members of all projects'
);
}
public
function
applyRule
(
PhabricatorUser
$viewer
,
$value
,
PhabricatorPolicyInterface
$object
)
{
$memberships
=
$this
->
getMemberships
(
$viewer
->
getPHID
());
foreach
(
$value
as
$project_phid
)
{
if
(
empty
(
$memberships
[
$project_phid
]))
{
return
false
;
}
}
return
true
;
}
public
function
getRuleOrder
()
{
return
205
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 4:00 AM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
100042
Default Alt Text
PhabricatorProjectsAllPolicyRule.php (568 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment