mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
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
This commit is contained in:
parent
448d8684e8
commit
5bb646a838
1 changed files with 0 additions and 5 deletions
|
@ -19,11 +19,6 @@ final class PhabricatorMacroDisableController
|
||||||
|
|
||||||
$macro = id(new PhabricatorMacroQuery())
|
$macro = id(new PhabricatorMacroQuery())
|
||||||
->setViewer($user)
|
->setViewer($user)
|
||||||
->requireCapabilities(
|
|
||||||
array(
|
|
||||||
PhabricatorPolicyCapability::CAN_VIEW,
|
|
||||||
PhabricatorPolicyCapability::CAN_EDIT,
|
|
||||||
))
|
|
||||||
->withIDs(array($this->id))
|
->withIDs(array($this->id))
|
||||||
->executeOne();
|
->executeOne();
|
||||||
if (!$macro) {
|
if (!$macro) {
|
||||||
|
|
Loading…
Reference in a new issue