Browse Source

Fixing permission bug

main
ddangelorb 3 years ago
parent
commit
c143326dad
  1. 4
      src/main/java/org/waterproofingdata/wpdauth/controller/UsersController.java

4
src/main/java/org/waterproofingdata/wpdauth/controller/UsersController.java

@ -194,7 +194,7 @@ public class UsersController {
}
@GetMapping(value = "/me")
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_CLIENT')")
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_INSTITUTION') or hasRole('ROLE_CLIENT')")
@ApiOperation(
value = "${UserController.me}",
response = UsersResponseDTO.class,
@ -213,7 +213,7 @@ public class UsersController {
}
@GetMapping("/refresh")
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_CLIENT')")
@PreAuthorize("hasRole('ROLE_ADMIN') or hasRole('ROLE_INSTITUTION') or hasRole('ROLE_CLIENT')")
public String refresh(HttpServletRequest req) {
return userService.refresh(req.getRemoteUser());
}

Loading…
Cancel
Save