Skip to content

Commit

Permalink
Added role check
Browse files Browse the repository at this point in the history
  • Loading branch information
arati-tekdi committed Nov 22, 2024
1 parent 087f03d commit 85f79e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/middleware/apiConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ export const apiList = {
'/user/v1/read/:userId': createRouteObject({
get: {
PRIVILEGE_CHECK: privilegeGroup.users.read,
ROLE_CHECK:
rolesGroup.admin_team_leader_teacher_student_state_admin_scta_ccta,
},
}),
'/user/v1/update/:userId': createRouteObject({
Expand Down

0 comments on commit 85f79e1

Please sign in to comment.