diff --git a/src/models/user.mocks.ts b/src/models/user.mocks.ts index dbea156a..c677285f 100644 --- a/src/models/user.mocks.ts +++ b/src/models/user.mocks.ts @@ -5,10 +5,12 @@ export const createUserMocks = ({ count = 1, workTimeEditLockDays = 0, boss, + absenceManagersId, }: { count?: number; workTimeEditLockDays?: WorkTimeEditLock; boss?: number; + absenceManagersId?: Array; }) => Array.from({ length: count }, (_, index): User => { const userId = index; @@ -37,5 +39,6 @@ export const createUserMocks = ({ nonbusinessgroupsId: null, workTimeEditLockDays, boss: boss ?? null, + absenceManagersId: absenceManagersId ?? null, }; }); diff --git a/src/models/user.ts b/src/models/user.ts index 739c7949..eacfb98a 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -82,6 +82,10 @@ export type User = { * The user's team leader's / boss' id */ boss: number | null; + /** + * The ids of the co-workers that are allowed to manage the absences of this co-worker + */ + absenceManagersId: Array | null; }; export enum UserRole {