Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100892959
DifferentialDiffViewPolicyFieldSpecification.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
Mon, Feb 3, 16:47
Size
536 B
Mime Type
text/x-php
Expires
Wed, Feb 5, 16:47 (2 d)
Engine
blob
Format
Raw Data
Handle
24005870
Attached To
rPH Phabricator
DifferentialDiffViewPolicyFieldSpecification.php
View Options
<?php
final
class
DifferentialDiffViewPolicyFieldSpecification
extends
DifferentialFieldSpecification
{
public
function
shouldAppearOnDiffView
()
{
return
true
;
}
public
function
renderLabelForDiffView
()
{
return
pht
(
'Visible To'
);
}
public
function
renderValueForDiffView
()
{
$user
=
$this
->
getUser
();
$diff
=
$this
->
getDiff
();
$descriptions
=
PhabricatorPolicyQuery
::
renderPolicyDescriptions
(
$user
,
$diff
);
return
idx
(
$descriptions
,
PhabricatorPolicyCapability
::
CAN_VIEW
);
}
}
Event Timeline
Log In to Comment