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 a4e7800 commit d0b38c5Copy full SHA for d0b38c5
app/code/Magento/User/Model/ResourceModel/User/Collection.php
@@ -31,11 +31,11 @@ protected function _construct()
31
protected function _initSelect()
32
{
33
parent::_initSelect();
34
- $this->getSelect()->join(
+ $this->getSelect()->joinLeft(
35
['user_role' => $this->getTable('authorization_role')],
36
- 'main_table.user_id = user_role.user_id',
+ 'main_table.user_id = user_role.user_id AND user_role.parent_id != 0',
37
[]
38
- )->join(
+ )->joinLeft(
39
['detail_role' => $this->getTable('authorization_role')],
40
'user_role.parent_id = detail_role.role_id',
41
['role_name']
0 commit comments