From c6acaecde05ef64a3c9ae37cb641b4629c2e79ff Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 14 Dec 2022 12:24:38 -0500 Subject: [PATCH] throw error if not logged in w/ burnettk --- spiffworkflow-frontend/src/components/NavigationBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-frontend/src/components/NavigationBar.tsx b/spiffworkflow-frontend/src/components/NavigationBar.tsx index eaf75aec..7a0ffd3e 100644 --- a/spiffworkflow-frontend/src/components/NavigationBar.tsx +++ b/spiffworkflow-frontend/src/components/NavigationBar.tsx @@ -42,7 +42,7 @@ export default function NavigationBar() { const { targetUris } = useUriListForPermissions(); // App.jsx forces login (which redirects to keycloak) so we should never get here if we're not logged in. - if (UserService.isLoggedIn()) { + if (!UserService.isLoggedIn()) { throw new UnauthenticatedError('You must be authenticated to do this.'); } const permissionRequestData: PermissionsToCheck = {