Skip to content

Commit 83402c0

Browse files
AC-12885: Review Report Fix
1 parent 6de22d4 commit 83402c0

File tree

1 file changed

+11
-11
lines changed
  • app/code/Magento/Reports/Controller/Adminhtml/Report

1 file changed

+11
-11
lines changed

app/code/Magento/Reports/Controller/Adminhtml/Report/Review.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)