From 5e80a8870f0dcd3ffa65aa00adee426a43266591 Mon Sep 17 00:00:00 2001 From: vishnu vinay Date: Thu, 19 Dec 2024 14:38:52 +0530 Subject: [PATCH] changed role name and removed commented code once --- src/common/middleware/apiConfig.ts | 6 +++--- src/middleware/gateway.service.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/common/middleware/apiConfig.ts b/src/common/middleware/apiConfig.ts index 445f850..9cfef7a 100644 --- a/src/common/middleware/apiConfig.ts +++ b/src/common/middleware/apiConfig.ts @@ -63,7 +63,7 @@ const rolesGroup = { 'cohort_admin' ], super_admin: ['super_admin'], //state_admin_mme - super_tenant_admin:['super_admin','tenant_admin'], + super_and_tenant_admin:['super_admin','tenant_admin'], central_admin_ccta: ['central_admin_ccta'], central_admin_mme: ['central_admin_mme'], state_admin_scta: ['state_admin_scta'], @@ -248,7 +248,7 @@ export const apiList = { post: { // PRIVILEGE_CHECK: privilegeGroup.cohort.create, // ROLE_CHECK: rolesGroup.team_leader, - ROLE_CHECK: rolesGroup.super_tenant_admin, + ROLE_CHECK: rolesGroup.super_and_tenant_admin, }, }), '/user/v1/cohort/search': createRouteObject({ @@ -266,7 +266,7 @@ export const apiList = { '/user/v1/cohort/delete/:cohortId': createRouteObject({ delete: { // PRIVILEGE_CHECK: privilegeGroup.cohort.delete, - ROLE_CHECK: rolesGroup.super_tenant_admin, + ROLE_CHECK: rolesGroup.super_and_tenant_admin, }, }), '/user/v1/cohort/mycohorts/:userId': createRouteObject({ diff --git a/src/middleware/gateway.service.ts b/src/middleware/gateway.service.ts index 19ad517..4e0ae37 100644 --- a/src/middleware/gateway.service.ts +++ b/src/middleware/gateway.service.ts @@ -17,7 +17,6 @@ export class GatewayService { ) { let newheaders = { tenantId: oheaders['tenantid'], - // academicyearid: oheaders['academicyearid'], 'content-type': 'application/json', authorization: oheaders['authorization'], };