diff --git a/src/RefundTicket/refundticket.schema.ts b/src/RefundTicket/refundticket.schema.ts index cecf5e8..def8309 100644 --- a/src/RefundTicket/refundticket.schema.ts +++ b/src/RefundTicket/refundticket.schema.ts @@ -139,7 +139,11 @@ export class RefundTicketSchema extends PothosSchema { throw new Error('Unauthorized') } // Check if the user is a customer or a center mentor - if (ctx.http.me?.role !== Role.CUSTOMER && ctx.http.me?.role !== Role.CENTER_MENTOR) { + if ( + ctx.http.me?.role !== Role.CUSTOMER && + ctx.http.me?.role !== Role.CENTER_MENTOR && + ctx.http.me?.role !== Role.CENTER_OWNER + ) { throw new Error('Only customers and center mentors can request refund') }