Skip to content

Commit

Permalink
Merge pull request #82 from arati-tekdi/main
Browse files Browse the repository at this point in the history
Updated privileges and added API
  • Loading branch information
arati-tekdi authored Jan 31, 2025
2 parents e6570ad + 915f589 commit 6c49df2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,8 @@ export const apiList = {
'/user/v1/list': createRouteObject({
post: {
PRIVILEGE_CHECK: privilegeGroup.users.read,
ROLE_CHECK: rolesGroup.admin_team_leader_teacher.concat(
rolesGroup.student,
),
ROLE_CHECK:
rolesGroup.admin_team_leader_teacher_student_state_admin_scta_ccta,
},
}),
//need confirmation
Expand Down Expand Up @@ -1233,6 +1232,14 @@ export const apiList = {
},
'/object/category/definition/v4/update',
),
'/api/object/category/definition/v1/update/:identifier': createRouteObject(
{
patch: {
...common_role_check,
},
},
'/object/category/definition/v4/update/:identifier',
),
'/api/object/category/definition/v1/read/:identifier': createRouteObject(
{
get: {
Expand Down

0 comments on commit 6c49df2

Please sign in to comment.