fix for not logged in
All checks were successful
CI / update (push) Successful in 16s

This commit is contained in:
Alexander Bocken 2024-03-27 22:09:15 +01:00
parent a5020be145
commit 78925d287c
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8

View File

@ -5,7 +5,6 @@
import { page } from "$app/stores" import { page } from "$app/stores"
const redirect_to_docs = () => { const redirect_to_docs = () => {
console.log(data.session.user.groups);
if (!data.session){ if (!data.session){
alert("Du musst dich einloggen, um diese Seite zu betreten."); alert("Du musst dich einloggen, um diese Seite zu betreten.");
window.location.href = "/auth/signin"; window.location.href = "/auth/signin";