diff --git a/src/Quiz/quiz.schema.ts b/src/Quiz/quiz.schema.ts index 06d6e41..d871c2b 100644 --- a/src/Quiz/quiz.schema.ts +++ b/src/Quiz/quiz.schema.ts @@ -159,7 +159,7 @@ export class QuizSchema extends PothosSchema { if (!ctx.http.me) { throw new Error('Unauthorized') } - if (ctx.http.me.role !== Role.CENTER_MENTOR) { + if (ctx.http.me.role !== Role.CENTER_MENTOR && ctx.http.me.role !== Role.CENTER_OWNER) { throw new Error('Unauthorized') } const centerMentor = await this.prisma.centerMentor.findUnique({