From fec54fb9be9d7ecc40c162d76659ac2897e9854e Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Thu, 15 Feb 2024 13:26:18 +0100 Subject: [PATCH] Toggle custom expiration date Role --- client/src/components/User.js | 2 +- client/src/components/UserMenu.jsx | 4 ++-- client/src/locale/en.js | 2 +- client/src/pages/RoleForm.js | 6 ++++-- server/src/main/java/access/security/InstitutionAdmin.java | 4 +++- server/src/main/java/access/security/UserPermissions.java | 4 +++- 6 files changed, 14 insertions(+), 8 deletions(-) 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 (<>