Ecrão das ausências

This commit is contained in:
Duarte
2026-06-04 18:51:22 +01:00
parent 6ddc8974e0
commit 8f51987342
10 changed files with 807 additions and 36 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ export const handle: Handle = async ({ event, resolve }) => {
const path = event.url.pathname;
// Route protection
if (path.startsWith('/admin')) {
if (path.startsWith('/admin') || path.startsWith('/super')) {
if (!event.locals.user) {
throw redirect(303, `/login?redirectTo=${encodeURIComponent(path)}`);
}