@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.

Fix incorrect check for CAN_EDIT in macro enable/disable controller

Summary: This CAN_EDIT capability doesn't exist. `PhabricatorMacroCapabilityManage::CAPABILITY` (checked on line 15) is used instead.

Test Plan: Disabled, then re-enabled a macro.

Reviewers: hach-que, btrahan

Reviewed By: hach-que

CC: aran

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

-5
-5
src/applications/macro/controller/PhabricatorMacroDisableController.php
··· 19 19 20 20 $macro = id(new PhabricatorMacroQuery()) 21 21 ->setViewer($user) 22 - ->requireCapabilities( 23 - array( 24 - PhabricatorPolicyCapability::CAN_VIEW, 25 - PhabricatorPolicyCapability::CAN_EDIT, 26 - )) 27 22 ->withIDs(array($this->id)) 28 23 ->executeOne(); 29 24 if (!$macro) {