Skip to content

Commit e503625

Browse files
glo23503devarul
authored andcommitted
ACP2E-1274: Magento\Backend\Model\Dashboard\ChartTest::testGetByPeriodWithParam is failing during specific time
1 parent 5345522 commit e503625

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ public function execute()
9898
->setPid($this->getRequest()->getParam('parent_id', false))
9999
->setRoleType(RoleGroup::ROLE_TYPE)
100100
->setUserType(UserContextInterface::USER_TYPE_ADMIN);
101+
if ($this->getRequest()->getParam('gws_is_all', false)) {
102+
$role->setGwsWebsites(null)->setGwsStoreGroups(null);
103+
}
101104
$this->_eventManager->dispatch(
102105
'admin_permissions_role_prepare_save',
103106
['object' => $role, 'request' => $this->getRequest()]

0 commit comments

Comments
 (0)