We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94a63f7 commit 2d9b41fCopy full SHA for 2d9b41f
app/code/Magento/Review/Controller/Adminhtml/Product/ReviewGrid.php
@@ -63,18 +63,7 @@ public function execute()
63
*/
64
protected function _isAllowed()
65
{
66
- if ($this->_authorization->isAllowed('Magento_Review::reviews_all')) {
67
- return true;
68
- }
69
-
70
- if (!$this->_authorization->isAllowed('Magento_Review::pending')) {
71
- return false;
72
73
74
- if ($this->getRequest() instanceof Http) {
75
- return $this->getRequest()->getBeforeForwardInfo('action_name') == 'pending';
76
77
78
+ return $this->_authorization->isAllowed('Magento_Review::reviews_all')
+ || $this->_authorization->isAllowed('Magento_Review::pending');
79
}
80
0 commit comments