Skip to content

Commit 2d9b41f

Browse files
author
Mastiuhin Olexandr
committed
MAGETWO-99591: Restricted admin cannot edit reviews from pending reviews grid
1 parent 94a63f7 commit 2d9b41f

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

app/code/Magento/Review/Controller/Adminhtml/Product/ReviewGrid.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,7 @@ public function execute()
6363
*/
6464
protected function _isAllowed()
6565
{
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 false;
66+
return $this->_authorization->isAllowed('Magento_Review::reviews_all')
67+
|| $this->_authorization->isAllowed('Magento_Review::pending');
7968
}
8069
}

0 commit comments

Comments
 (0)