diff --git a/client/src/components/User.js b/client/src/components/User.js index 8f49fb01..411688cd 100644 --- a/client/src/components/User.js +++ b/client/src/components/User.js @@ -109,7 +109,7 @@ export const User = ({user, other, config, currentUser}) => { ); } - user.highestAuthority = I18n.t(`access.${highestAuthority(user)}`); + user.highestAuthority = I18n.t(`access.${highestAuthority(user, false)}`); const attributes = [["name"], ["sub"], ["eduPersonPrincipalName"], ["schacHomeOrganization"], ["email"], ["highestAuthority"], ["lastActivity", true]]; const filteredUserRoles = user.userRoles.filter(filterUserRole).filter(role => role.authority !== AUTHORITIES.GUEST || currentUser.superUser); diff --git a/client/src/components/UserMenu.jsx b/client/src/components/UserMenu.jsx index 01516960..5234fdfb 100644 --- a/client/src/components/UserMenu.jsx +++ b/client/src/components/UserMenu.jsx @@ -31,7 +31,7 @@ export const UserMenu = ({user, config, actions}) => { }); } - const renderMenu = (adminLinks) => { + const renderMenu = adminLinks => { return (<>