Skip to content

Commit

Permalink
changed role name and removed commented code once
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuvinay89 committed Dec 19, 2024
1 parent 0e2ab1e commit 5e80a88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down Expand Up @@ -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({
Expand All @@ -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({
Expand Down
1 change: 0 additions & 1 deletion src/middleware/gateway.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export class GatewayService {
) {
let newheaders = {
tenantId: oheaders['tenantid'],
// academicyearid: oheaders['academicyearid'],
'content-type': 'application/json',
authorization: oheaders['authorization'],
};
Expand Down

0 comments on commit 5e80a88

Please sign in to comment.