Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1084268
ManiphestTaskAuthorPolicyRule.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
635 B
Referenced Files
None
Subscribers
None
ManiphestTaskAuthorPolicyRule.php
View Options
<?php
final
class
ManiphestTaskAuthorPolicyRule
extends
PhabricatorPolicyRule
{
public
function
getRuleDescription
()
{
return
pht
(
'task author'
);
}
public
function
canApplyToObject
(
PhabricatorPolicyInterface
$object
)
{
return
(
$object
instanceof
ManiphestTask
);
}
public
function
applyRule
(
PhabricatorUser
$viewer
,
$value
,
PhabricatorPolicyInterface
$object
)
{
$viewer_phid
=
$viewer
->
getPHID
();
if
(!
$viewer_phid
)
{
return
false
;
}
return
(
$object
->
getAuthorPHID
()
==
$viewer_phid
);
}
public
function
getValueControlType
()
{
return
self
::
CONTROL_TYPE_NONE
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 11:17 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
266248
Default Alt Text
ManiphestTaskAuthorPolicyRule.php (635 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment