Skip to content

Commit

Permalink
set authorized role for creating a skill to only superuser
Browse files Browse the repository at this point in the history
  • Loading branch information
yesyash committed Jul 7, 2024
1 parent abd38a4 commit 884e8cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public ResponseEntity<List<SkillViewModel>> getAll() {
}

@PostMapping
@AuthorizedRoles({UserRoleEnum.SUPERUSER})
public ResponseEntity<SkillViewModel> create(@Valid @RequestBody CreateSkillViewModel skill) {
return ResponseEntity.ok(skillService.create(skill));
}
Expand Down

0 comments on commit 884e8cc

Please sign in to comment.