Skip to content

Commit

Permalink
Merge pull request #42781 from nextcloud/fix/user_ldap-support-group-…
Browse files Browse the repository at this point in the history
…membership-duplicate

Fix crash of login in case of duplicated group membership
  • Loading branch information
blizzz authored Jan 15, 2024
2 parents e5ef58b + 658b20a commit 52406d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/user_ldap/lib/Group_Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function getUserGroups($uid) {
}
}

return $groups;
return array_values(array_unique($groups));
}

/**
Expand Down

0 comments on commit 52406d5

Please sign in to comment.