From 0c15a16d6521594fcc6a9abbbb1aa87949372a3d Mon Sep 17 00:00:00 2001 From: fnecas Date: Mon, 15 Jan 2024 22:26:45 +0100 Subject: [PATCH] feat: remove empty span and hide admin block if only geoserver admin --- src/auth.ts | 2 +- src/header.ce.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 2cb1276..fda9b92 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -74,7 +74,7 @@ export function getAdminRoles(roles: KNOWN_ROLES[]): AdminRoles | null { const catalog = superUser || roles.indexOf('ROLE_GN_ADMIN') > -1 const viewer = superUser || roles.indexOf('ROLE_MAPSTORE_ADMIN') > -1 const admin = - console || catalog || viewer || roles.indexOf('ROLE_ADMINISTRATOR') > -1 + superUser || console || catalog || viewer if (!admin) return null return { superUser, diff --git a/src/header.ce.vue b/src/header.ce.vue index 50c30e3..b9a5f62 100644 --- a/src/header.ce.vue +++ b/src/header.ce.vue @@ -129,7 +129,6 @@ onMounted(() => { > |
-