corrected redirects
This commit is contained in:
@@ -17,6 +17,9 @@ export async function load({ locals }) {
|
||||
if (!locals.user) {
|
||||
throw redirect(302, `/auth/login?next=/auth/admin/users`);
|
||||
}
|
||||
if (locals.user.role_id === 0) {
|
||||
throw redirect(302, `/auth/about/${locals.user.id}`);
|
||||
}
|
||||
}
|
||||
|
||||
/** @type {import('./$types').Actions} */
|
||||
|
||||
Reference in New Issue
Block a user