Skip to content

Commit d0b38c5

Browse files
committed
MAGETWO-80353: PHP 7.1 compatibility: Jenkins Failures related to PHP 7.1 upgrade
1 parent a4e7800 commit d0b38c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/User/Model/ResourceModel/User/Collection.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ protected function _construct()
3131
protected function _initSelect()
3232
{
3333
parent::_initSelect();
34-
$this->getSelect()->join(
34+
$this->getSelect()->joinLeft(
3535
['user_role' => $this->getTable('authorization_role')],
36-
'main_table.user_id = user_role.user_id',
36+
'main_table.user_id = user_role.user_id AND user_role.parent_id != 0',
3737
[]
38-
)->join(
38+
)->joinLeft(
3939
['detail_role' => $this->getTable('authorization_role')],
4040
'user_role.parent_id = detail_role.role_id',
4141
['role_name']

0 commit comments

Comments
 (0)