From 24ac53f52f293a8edd1fb4f5b0337b80d5c72988 Mon Sep 17 00:00:00 2001 From: anishshobithps Date: Wed, 8 May 2024 16:08:46 +0530 Subject: [PATCH] fix: role for the coordinator --- src/app/api/coordinators/verify/[id]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/coordinators/verify/[id]/route.ts b/src/app/api/coordinators/verify/[id]/route.ts index f0c07bf..d39dd47 100644 --- a/src/app/api/coordinators/verify/[id]/route.ts +++ b/src/app/api/coordinators/verify/[id]/route.ts @@ -15,7 +15,7 @@ export async function GET( ); } - if (session.user.role !== UserRole.ADMIN) { + if (session.user.role !== UserRole.COORDINATOR) { return NextResponse.json( { message: "Forbidden", isOk: false }, { status: 403 }