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()
6060 */
6161 protected function _isAllowed ()
6262 {
63- return match ($ this ->getRequest ()->getActionName ()) {
64- 'exportCustomerCsv ' ,
65- 'exportCustomerExcel ' ,
63+ return match (strtolower ( $ this ->getRequest ()->getActionName () )) {
64+ 'exportcustomercsv ' ,
65+ 'exportcustomerexcel ' ,
6666 '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 ' ,
7373 'product ' =>
74- $ this ->_authorization ->isAllowed ('Magento_Reports::review_product ' ),
74+ $ this ->_authorization ->isAllowed ('Magento_Reports::review_product ' ),
7575 default =>
76- $ this ->_authorization ->isAllowed ('Magento_Reports::review ' ),
76+ $ this ->_authorization ->isAllowed ('Magento_Reports::review ' ),
7777 };
7878 }
7979}
You can’t perform that action at this time.
0 commit comments