Page MenuHomePhabricator

D14373.diff
No OneTemporary

D14373.diff

diff --git a/src/applications/harbormaster/controller/HarbormasterStepViewController.php b/src/applications/harbormaster/controller/HarbormasterStepViewController.php
--- a/src/applications/harbormaster/controller/HarbormasterStepViewController.php
+++ b/src/applications/harbormaster/controller/HarbormasterStepViewController.php
@@ -97,7 +97,10 @@
->setUser($viewer)
->setObject($step);
- $can_edit = true;
+ $can_edit = PhabricatorPolicyFilter::hasCapability(
+ $viewer,
+ $step,
+ PhabricatorPolicyCapability::CAN_EDIT);
$list->addAction(
id(new PhabricatorActionView())

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 10:06 PM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7383318
Default Alt Text
D14373.diff (627 B)

Event Timeline