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>
pull/42781/head
Côme Chilliet 5 months ago
parent eda8a4169b
commit 658b20aef5
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A

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

Loading…
Cancel
Save