fix: faculty users are now recognized as employees
Check Deno code / Check Deno code (push) Has been cancelled
Tests / Unit tests (push) Has been cancelled
Tests / Integration tests (push) Has been cancelled

This commit is contained in:
2026-05-05 15:29:02 +02:00
parent 0f87bc18c3
commit 49bcc3083a
19 changed files with 62 additions and 58 deletions
+5
View File
@@ -63,6 +63,11 @@ export interface LoginJWT {
user: CasContent;
}
export function isEmployee(session: CasContent): boolean {
return session.eduPersonPrimaryAffiliation === "employee" ||
session.eduPersonPrimaryAffiliation === "faculty";
}
export type EmptyObject = Record<string | number | symbol, never>;
// deno-lint-ignore no-explicit-any