Skip to content

Commit

Permalink
add super user role check in skills/requests api
Browse files Browse the repository at this point in the history
  • Loading branch information
yesyash committed Jul 13, 2024
1 parent f3d9df8 commit bc59405
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public ResponseEntity<List<SkillViewModel>> getAll() {
}

@GetMapping("/requests")
@AuthorizedRoles({UserRoleEnum.SUPERUSER})
public ResponseEntity<SkillRequestsDto> getAllRequests() {
return ResponseEntity.ok(skillService.getAllRequests());
}
Expand Down

0 comments on commit bc59405

Please sign in to comment.