diff --git a/frontend/src/routes/auth/admin/users/+page.server.js b/frontend/src/routes/auth/admin/users/+page.server.js index 37c49c2..1efc9f1 100644 --- a/frontend/src/routes/auth/admin/users/+page.server.js +++ b/frontend/src/routes/auth/admin/users/+page.server.js @@ -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} */