From 1587c21cb35cf93d9e9d62dbebb7d31a98e3f627 Mon Sep 17 00:00:00 2001 From: Hannah Cotterell <143161783+HanCotterell@users.noreply.github.com> Date: Tue, 9 Sep 2025 20:18:37 -0700 Subject: [PATCH] Add MENTOR role to authorisation for contract data Adds MENTOR role authorisation for partnerContractData and eventContractData. --- src/types/Student.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/Student.ts b/src/types/Student.ts index 1aa00b9..1e44d50 100644 --- a/src/types/Student.ts +++ b/src/types/Student.ts @@ -87,11 +87,11 @@ export class Student implements PrismaStudent { @Field(() => GraphQLJSON) profile: Prisma.JsonValue - @Authorized([AuthRole.PARTNER, AuthRole.ADMIN, AuthRole.MANAGER]) + @Authorized([AuthRole.PARTNER, AuthRole.ADMIN, AuthRole.MANAGER, AuthRole.MENTOR]) @Field(() => GraphQLJSON, { nullable: true }) eventContractData: Prisma.JsonValue | null - @Authorized([AuthRole.PARTNER, AuthRole.ADMIN, AuthRole.MANAGER]) + @Authorized([AuthRole.PARTNER, AuthRole.ADMIN, AuthRole.MANAGER, AuthRole.MENTOR]) @Field(() => GraphQLJSON, { nullable: true }) partnerContractData: Prisma.JsonValue | null