Skip to content

Commit

Permalink
Fix for user with multiple authorities
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 26, 2024
1 parent f5e4312 commit 695bd84
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions client/src/tabs/Users.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,11 @@ export const Users = () => {
{
key: "authority",
header: I18n.t("users.highestAuthority"),
mapper: user => <Chip type={chipTypeForUserRole(user.authority)}
label={I18n.t(`access.${user.authority}`)}/>
mapper: user => {
const authority = isEmpty(user.authority) ? null : user.authority.split(",")[0];
return <Chip type={chipTypeForUserRole(authority)}
label={I18n.t(`access.${authority}`)}/>
}
},
{
key: "createdAt",
Expand Down

0 comments on commit 695bd84

Please sign in to comment.