aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 09:39:59 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-15 09:39:59 +0100
commit658b20aef592edb24632565e4456823b411b3039 (patch)
tree8f4f9741d729fbd3c6b056d32ee98ae08539474e
parenteda8a4169b57810135396b8865280628d452939f (diff)
downloadnextcloud-server-658b20aef592edb24632565e4456823b411b3039.tar.gz
nextcloud-server-658b20aef592edb24632565e4456823b411b3039.zip
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>
-rw-r--r--apps/user_ldap/lib/Group_Proxy.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Group_Proxy.php b/apps/user_ldap/lib/Group_Proxy.php
index 73daf4fdd77..7410aa6a6e9 100644
--- a/apps/user_ldap/lib/Group_Proxy.php
+++ b/apps/user_ldap/lib/Group_Proxy.php
@@ -178,7 +178,7 @@ class Group_Proxy extends Proxy implements \OCP\GroupInterface, IGroupLDAP, IGet
}
}
- return $groups;
+ return array_values(array_unique($groups));
}
/**