From e5086dc352ac868ff4a6d56ca6833feecd0be20f Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Tue, 27 Aug 2024 21:58:23 -0700 Subject: [PATCH] Update index.ts --- src/web/src/modules/administration/router/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/src/modules/administration/router/index.ts b/src/web/src/modules/administration/router/index.ts index 5b816b4..3f35a8f 100644 --- a/src/web/src/modules/administration/router/index.ts +++ b/src/web/src/modules/administration/router/index.ts @@ -81,7 +81,7 @@ async function requireAccess(to: RouteLocation): Promise { let user = await waitForUserToLoad(); - if (!user) return "/NotAuthorized?Requires-User"; + if (!user || !user.sub) return "/NotAuthorized?Requires-User"; if (user.STATUS != "Active") return "/NotAuthorized?Requires-Active";