Skip to content

Commit

Permalink
[SELC-4812] Feat: Added @PreAuthorize in deleteUserGroup API (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
flaminiaScarciofolo authored May 14, 2024
1 parent be2068b commit 16a2a3d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public void updateUserGroup(@ApiParam("${swagger.dashboard.user-group.model.id}"
@PostMapping(value = "/{id}/members/{userId}", produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.NO_CONTENT)
@ApiOperation(value = "", notes = "${swagger.dashboard.user-group.api.addMember}")
@PreAuthorize("hasPermission(#id, 'UserGroupResource', 'ADMIN')")
public void addMemberToUserGroup(@ApiParam("${swagger.dashboard.user-group.model.id}")
@PathVariable("id") String id,
@ApiParam("${swagger.dashboard.user.model.id}")
Expand Down

0 comments on commit 16a2a3d

Please sign in to comment.