diff --git a/frontend/src/views/AccountView.vue b/frontend/src/views/AccountView.vue index fd201d2..a257823 100644 --- a/frontend/src/views/AccountView.vue +++ b/frontend/src/views/AccountView.vue @@ -485,8 +485,6 @@ const onboardingUrl = ref("/onboarding"); const doLogin = () => login("/account"); const copied = reactive({}); -const isPortalAdmin = () => Array.isArray(auth.groups) && auth.groups.includes("admin"); - onMounted(() => { if (auth.ready && auth.authenticated) { refreshOverview(); @@ -587,7 +585,7 @@ async function refreshOverview() { } async function refreshAdminRequests() { - if (!isPortalAdmin()) { + if (!auth.authenticated) { admin.enabled = false; admin.requests = []; return; @@ -623,7 +621,7 @@ async function refreshAdminRequests() { } async function refreshAdminFlags() { - if (!isPortalAdmin()) { + if (!auth.authenticated) { admin.flags = []; admin.flagsLoading = false; return;