- Add role detection

- Restrict APIs to personnels
- Show 403 for unauthorized access"
This commit is contained in:
2026-01-06 19:05:59 +01:00
parent e818051621
commit c0a335d33f
2 changed files with 28 additions and 1 deletions
+1
View File
@@ -4,6 +4,7 @@ import { AsyncRoute } from "$fresh/src/server/types.ts";
export interface AuthenticatedState {
isAuthenticated: true;
isFromPolytech: boolean;
role: "etudiants" | "personnels" | "autres";
session: CasContent;
availablePages: Record<string, string>;
}