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:
Côme Chilliet 2024-01-15 09:39:59 +01:00
parent eda8a4169b
commit 658b20aef5
No known key found for this signature in database
GPG key ID: A3E2F658B28C760A

View file

@ -178,7 +178,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet
}
}
return $groups;
return array_values(array_unique($groups));
}
/**