@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set `$can_edit` for Harbormaster steps

Summary: Sets the `$can_edit` value correctly (previously it was hardcoded to `true`).

Test Plan: Went to http://phabricator.local/harbormaster/step/view/1/ and saw "Edit Step" disabled.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14373

authored by

Joshua Spence and committed by
joshuaspence
98a301a5 4d13b6c6

+4 -1
+4 -1
src/applications/harbormaster/controller/HarbormasterStepViewController.php
··· 97 97 ->setUser($viewer) 98 98 ->setObject($step); 99 99 100 - $can_edit = true; 100 + $can_edit = PhabricatorPolicyFilter::hasCapability( 101 + $viewer, 102 + $step, 103 + PhabricatorPolicyCapability::CAN_EDIT); 101 104 102 105 $list->addAction( 103 106 id(new PhabricatorActionView())