Skip to content

Commit

Permalink
GAP-2523 (#201)
Browse files Browse the repository at this point in the history
* Give super admin access to relevant method

* Give SUPER ADMIN access to relevant method

* Revert "Give SUPER ADMIN access to relevant method"

This reverts commit dbe7b3619a1376881501c4f7d7e6e1f06687cc5c.
  • Loading branch information
paul-lawlor-tco authored Apr 16, 2024
1 parent e9babe3 commit a3e4cc3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public ResponseEntity<List<UserEmailDto>> getUserEmailsFromSubs(


@GetMapping("/user/email/{email}")
@PreAuthorize("hasRole('ADMIN')")
@PreAuthorize("hasAnyRole('ADMIN', 'SUPER_ADMIN')")
public ResponseEntity<UserDto> getUserByEmail(@PathVariable("email") String email, @RequestParam Optional<String> role) {
return ResponseEntity.ok(
role.map(s -> new UserDto(oneLoginUserService.getUserByEmailAndRole(email, s)))
Expand Down

0 comments on commit a3e4cc3

Please sign in to comment.