feat(auth): harden Authentik and guest capability boundaries
This commit is contained in:
@@ -10,6 +10,7 @@ const signedOutSession: AuthSession = {
|
||||
expires_at: null,
|
||||
role: null,
|
||||
guest_access_enabled: false,
|
||||
authentik_enabled: false,
|
||||
guest_project_id: null,
|
||||
}
|
||||
|
||||
@@ -43,6 +44,7 @@ export function useOperatorSession() {
|
||||
setSession((current) => ({
|
||||
...signedOutSession,
|
||||
guest_access_enabled: current?.guest_access_enabled ?? false,
|
||||
authentik_enabled: current?.authentik_enabled ?? false,
|
||||
}))
|
||||
setSessionError('Uw sessie is verlopen. Meld u opnieuw aan.')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user