Skip to content

Commit

Permalink
[SELC-4807] Feat: Added @PreAuthorize in searchUser by taxCode API (#437
Browse files Browse the repository at this point in the history
)
  • Loading branch information
flaminiaScarciofolo authored May 14, 2024
1 parent 650ee42 commit 7e5d891
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public UserResource getUserById(@ApiParam("${swagger.dashboard.user.model.id}")
@Content(mediaType = MediaType.APPLICATION_PROBLEM_JSON_VALUE,
schema = @Schema(implementation = Problem.class))
})
@PreAuthorize("hasPermission(#institutionId, 'InstitutionResource', 'ADMIN')")
public UserResource search(@ApiParam("${swagger.dashboard.user.model.searchUserDto}")
@RequestBody
@Valid
Expand Down

0 comments on commit 7e5d891

Please sign in to comment.