mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-29 19:25:50 +00:00
throw error if not logged in w/ burnettk
This commit is contained in:
parent
7dd2e81048
commit
38ca1d60b3
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user