ENCOA-130: Add owners to exams

This commit is contained in:
Tiago Ribeiro
2024-09-03 16:31:29 +01:00
parent 0f38e01283
commit 7cd18b07bb
6 changed files with 113 additions and 13 deletions

View File

@@ -35,6 +35,7 @@ export const updateExpiryDateOnGroup = async (participantID: string, corporateID
export const getUserCorporate = async (id: string) => {
const user = await getUser(id);
if (["admin", "developer"].includes(user.type)) return undefined;
if (user.type === "mastercorporate") return user;
const groups = await getParticipantGroups(id);