Skip to content

Commit

Permalink
Merge pull request #57 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Added new roles for APIs
  • Loading branch information
Shubham4026 authored Nov 20, 2024
2 parents 762d6bd + 6e35dbd commit 9627a91
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ export const apiList = {
{
patch: {
//PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_team_leader,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/hierarchy/update',
Expand Down Expand Up @@ -646,44 +646,44 @@ export const apiList = {
'/action/questionset/v2/create': createRouteObject(
{
post: {
//PRIVILEGE_CHECK: privilegeGroup.content.create,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.create,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/create',
),
'/action/questionset/v2/update/:identifier': createRouteObject(
{
patch: {
//PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/update/:identifier',
),
'/action/questionset/v2/review/:identifier': createRouteObject(
{
post: {
//PRIVILEGE_CHECK: privilegeGroup.content.review,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.review,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/review/:identifier',
),
'/action/questionset/v2/publish/:identifier': createRouteObject(
{
post: {
//PRIVILEGE_CHECK: privilegeGroup.content.approve,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.publish,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/publish/:identifier',
),
'/action/questionset/v2/retire/:identifier': createRouteObject(
{
delete: {
//PRIVILEGE_CHECK: privilegeGroup.content.delete,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.delete,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/retire/:identifier',
Expand All @@ -692,17 +692,17 @@ export const apiList = {
'/action/questionset/v2/reject/:identifier': createRouteObject(
{
post: {
//PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.delete,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/reject/:identifier',
),
'/action/questionset/v2/comment/update/:identifier': createRouteObject(
{
patch: {
//PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_team_leader,
PRIVILEGE_CHECK: privilegeGroup.content.update,
ROLE_CHECK: rolesGroup.admin_scta_ccta,
},
},
'/questionset/v5/comment/update/:identifier',
Expand Down

0 comments on commit 9627a91

Please sign in to comment.