Temporary Auth disable on Admin page for testing
This commit is contained in:
parent
e2bbc2f1eb
commit
59a0cb4bc9
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Reference in a new issue