From 59a0cb4bc9b9df63632db00294375079cb22af1c Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 9 Dec 2023 18:53:07 +0100 Subject: [PATCH] Temporary Auth disable on Admin page for testing --- src/routes/admin/+page.server.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/admin/+page.server.ts b/src/routes/admin/+page.server.ts index 095d527..a811fbc 100644 --- a/src/routes/admin/+page.server.ts +++ b/src/routes/admin/+page.server.ts @@ -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") }