File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
app/code/Magento/Sales/Controller/Adminhtml/Order Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ abstract class Create extends \Magento\Backend\App\Action
26
26
* Indicates how to process post data
27
27
*/
28
28
private const ACTION_SAVE = 'save ' ;
29
+ /**
30
+ * Controller name for edit actions
31
+ */
32
+ private const CONTROLLER_NAME_ORDER_EDIT = 'order_edit ' ;
29
33
/**
30
34
* @var \Magento\Framework\Escaper
31
35
*/
@@ -380,6 +384,9 @@ protected function _getAclResource()
380
384
if (in_array ($ action , ['index ' , 'save ' , 'cancel ' ]) && $ this ->_getSession ()->getReordered ()) {
381
385
$ action = 'reorder ' ;
382
386
}
387
+ if (strtolower ($ this ->getRequest ()->getControllerName () ?? '' ) === self ::CONTROLLER_NAME_ORDER_EDIT ) {
388
+ $ action = 'actions_edit ' ;
389
+ }
383
390
switch ($ action ) {
384
391
case 'index ' :
385
392
case 'save ' :
@@ -391,6 +398,9 @@ protected function _getAclResource()
391
398
case 'cancel ' :
392
399
$ aclResource = 'Magento_Sales::cancel ' ;
393
400
break ;
401
+ case 'actions_edit ' :
402
+ $ aclResource = 'Magento_Sales::actions_edit ' ;
403
+ break ;
394
404
default :
395
405
$ aclResource = 'Magento_Sales::actions ' ;
396
406
break ;
You can’t perform that action at this time.
0 commit comments