Skip to content

Commit 5345522

Browse files
glo23503devarul
authored andcommitted
ACP2E-1490: websites and store_groups id store incorrectly in the authorization_role table while changing the scope for the user role
1 parent 440e317 commit 5345522

File tree

1 file changed

+0
-4
lines changed
  • app/code/Magento/User/Controller/Adminhtml/User/Role

1 file changed

+0
-4
lines changed

app/code/Magento/User/Controller/Adminhtml/User/Role/SaveRole.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class SaveRole extends \Magento\User\Controller\Adminhtml\User\Role implements H
5757
*
5858
* @return SecurityCookie
5959
* @deprecated 100.1.0
60-
* @see we don't recommend this approach anymore
6160
*/
6261
private function getSecurityCookie()
6362
{
@@ -99,9 +98,6 @@ public function execute()
9998
->setPid($this->getRequest()->getParam('parent_id', false))
10099
->setRoleType(RoleGroup::ROLE_TYPE)
101100
->setUserType(UserContextInterface::USER_TYPE_ADMIN);
102-
if ($this->getRequest()->getParam('gws_is_all', false)) {
103-
$role->setGwsWebsites(null)->setGwsStoreGroups(null);
104-
}
105101
$this->_eventManager->dispatch(
106102
'admin_permissions_role_prepare_save',
107103
['object' => $role, 'request' => $this->getRequest()]

0 commit comments

Comments
 (0)