Skip to content

Commit

Permalink
Merge pull request #1203 from SciCatProject/bug-fix-empty-string-valu…
Browse files Browse the repository at this point in the history
…e-in-accessGroups

fix: empty string value in accessGroups field
  • Loading branch information
nitrosx authored May 1, 2024
2 parents c0ef6e2 + 857530a commit 05965bc
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ export class AccessGroupFromMultipleProvidersService extends AccessGroupService
for (const accessGroupProvider of this.accessGroupProviders) {
const accessGroupsFromProvider =
await accessGroupProvider.getAccessGroups(userPayload);
accessGroups.push(...accessGroupsFromProvider);

accessGroups.push(
...accessGroupsFromProvider.filter((group) => group.trim() !== ""),
);
}

return accessGroups;
}
}

0 comments on commit 05965bc

Please sign in to comment.