Skip to content

Commit a8498b6

Browse files
Merge branch 'AC-12453' into cia-2.4.8-beta1-develop-bugfix-09022024
2 parents 7434de7 + 763a280 commit a8498b6

File tree

1 file changed

+10
-0
lines changed
  • app/code/Magento/Sales/Controller/Adminhtml/Order

1 file changed

+10
-0
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/Create.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ abstract class Create extends \Magento\Backend\App\Action
2626
* Indicates how to process post data
2727
*/
2828
private const ACTION_SAVE = 'save';
29+
/**
30+
* Controller name for edit actions
31+
*/
32+
private const CONTROLLER_NAME_ORDER_EDIT = 'order_edit';
2933
/**
3034
* @var \Magento\Framework\Escaper
3135
*/
@@ -380,6 +384,9 @@ protected function _getAclResource()
380384
if (in_array($action, ['index', 'save', 'cancel']) && $this->_getSession()->getReordered()) {
381385
$action = 'reorder';
382386
}
387+
if (strtolower($this->getRequest()->getControllerName() ?? '') === self::CONTROLLER_NAME_ORDER_EDIT) {
388+
$action = 'actions_edit';
389+
}
383390
switch ($action) {
384391
case 'index':
385392
case 'save':
@@ -391,6 +398,9 @@ protected function _getAclResource()
391398
case 'cancel':
392399
$aclResource = 'Magento_Sales::cancel';
393400
break;
401+
case 'actions_edit':
402+
$aclResource = 'Magento_Sales::actions_edit';
403+
break;
394404
default:
395405
$aclResource = 'Magento_Sales::actions';
396406
break;

0 commit comments

Comments
 (0)