Skip to content

Commit

Permalink
fix(php): Prevent a duplicate users_oidc (#892)
Browse files Browse the repository at this point in the history
This commit prevent a duplicate users when we search them with the `apps/workspace/api/autoComplete/:term/:spaceId` api/rest.
  • Loading branch information
zak39 authored Aug 23, 2023
1 parent a2061d0 commit 45cfe28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Service/WorkspaceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ private function searchUsersByDisplayName(string $term): array {
$term = $term === '*' ? '' : $term;
$users = $this->userManager->searchDisplayName($term, 50);

$users = array_unique($users, SORT_REGULAR);

return $users;
}

Expand Down

0 comments on commit 45cfe28

Please sign in to comment.