Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
datajohnson committed Aug 28, 2024
1 parent 9090dfd commit e5086dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/src/modules/administration/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function requireAccess(to: RouteLocation): Promise<boolean | string> {

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";

Expand Down

0 comments on commit e5086dc

Please sign in to comment.