mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Fix crash of login in case of duplicated group membership
If several LDAP configurations return the same group id for a user it should still only appear once in the return of getUserGroups Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
eda8a4169b
commit
658b20aef5
1 changed files with 1 additions and 1 deletions
|
|
@ -178,7 +178,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet
|
|||
}
|
||||
}
|
||||
|
||||
return $groups;
|
||||
return array_values(array_unique($groups));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue