- Add role detection
- Restrict APIs to personnels - Show 403 for unauthorized access"
This commit is contained in:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user