File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
app/code/Magento/Reports/Controller/Adminhtml/Report Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -60,20 +60,20 @@ public function _initAction()
60
60
*/
61
61
protected function _isAllowed ()
62
62
{
63
- return match ($ this ->getRequest ()->getActionName ()) {
64
- 'exportCustomerCsv ' ,
65
- 'exportCustomerExcel ' ,
63
+ return match (strtolower ( $ this ->getRequest ()->getActionName () )) {
64
+ 'exportcustomercsv ' ,
65
+ 'exportcustomerexcel ' ,
66
66
'customer ' =>
67
- $ this ->_authorization ->isAllowed ('Magento_Reports::review_customer ' ),
68
- 'exportProductCsv ' ,
69
- 'exportProductExcel ' ,
70
- 'exportProductDetailCsv ' ,
71
- 'exportProductDetailExcel ' ,
72
- 'productDetail ' ,
67
+ $ this ->_authorization ->isAllowed ('Magento_Reports::review_customer ' ),
68
+ 'exportproductcsv ' ,
69
+ 'exportproductexcel ' ,
70
+ 'exportproductdetailcsv ' ,
71
+ 'exportproductdetailexcel ' ,
72
+ 'productdetail ' ,
73
73
'product ' =>
74
- $ this ->_authorization ->isAllowed ('Magento_Reports::review_product ' ),
74
+ $ this ->_authorization ->isAllowed ('Magento_Reports::review_product ' ),
75
75
default =>
76
- $ this ->_authorization ->isAllowed ('Magento_Reports::review ' ),
76
+ $ this ->_authorization ->isAllowed ('Magento_Reports::review ' ),
77
77
};
78
78
}
79
79
}
You can’t perform that action at this time.
0 commit comments