Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1010078
DifferentialDiffViewPolicyFieldSpecification.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
609 B
Referenced Files
None
Subscribers
None
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
);
// TODO: Clean this up with new policy UI.
$policy
=
idx
(
$descriptions
,
PhabricatorPolicyCapability
::
CAN_VIEW
);
return
$policy
[
1
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 19, 1:33 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
245715
Default Alt Text
DifferentialDiffViewPolicyFieldSpecification.php (609 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment