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 = {