Temporary Auth disable on Admin page for testing

This commit is contained in:
Neshura 2023-12-09 18:53:07 +01:00
parent e2bbc2f1eb
commit 59a0cb4bc9
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -9,7 +9,8 @@ export async function load({ cookies }) {
}
})).json();
if (!auth.admin && !auth.moderator) {
/*if (!auth.admin && !auth.moderator) {
throw redirect(303, '/401');
}
}*/
console.log("WARNING: Admin Auth Check is disabled! DO NOT USE IN PRODUCTION")
}