mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -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
278f770a17
commit
b18aabcc79
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