File tree Expand file tree Collapse file tree
src/main/java/edu/tamu/app/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public ApiResponse getUser(@WeaverUser User user) {
7878 * @throws Exception
7979 */
8080 @ RequestMapping
81- @ PreAuthorize ("hasRole('WEB_MANAGER ')" )
81+ @ PreAuthorize ("hasRole('ADMIN ')" )
8282 public ApiResponse allUsers () throws Exception {
8383 return new ApiResponse (SUCCESS , userRepo .findAll ());
8484 }
@@ -90,7 +90,7 @@ public ApiResponse allUsers() throws Exception {
9090 * @throws Exception
9191 */
9292 @ RequestMapping ("/update" )
93- @ PreAuthorize ("hasRole('WEB_MANAGER ')" )
93+ @ PreAuthorize ("hasRole('ADMIN ')" )
9494 public ApiResponse updateUser (@ RequestBody User user ) throws Exception {
9595 user = userRepo .save (user );
9696 simpMessagingTemplate .convertAndSend ("/channel/user" , new ApiResponse (SUCCESS , userRepo .findAll ()));
You can’t perform that action at this time.
0 commit comments