fix: faculty users are now recognized as employees
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user