Skip to content

Commit

Permalink
Correct style issue
Browse files Browse the repository at this point in the history
  • Loading branch information
niyatanya committed Aug 30, 2024
1 parent d3e3018 commit fdea480
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hexlet/code/controller/api/UserController.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

import org.springframework.security.access.AccessDeniedException;

import javax.naming.NoPermissionException;
import java.util.List;

@RestController
Expand Down Expand Up @@ -78,7 +77,7 @@ private UserDTO create(@Valid @RequestBody UserCreateDTO dto) {
@PutMapping(path = "/{id}")
//value = "@userService.findById(#id).getEmail() == authentication.name"
//"@userRepository.findById(#id).getEmail() == authentication.principal.username"
//@PreAuthorize(value = "@userRepository.findById(#id).getEmail() == authentication.name")
// @PreAuthorize(value = "@userRepository.findById(#id).getEmail() == authentication.name")
private UserDTO update(@Valid @RequestBody UserUpdateDTO dto,
@PathVariable long id) throws AccessDeniedException {
User currentUser = userUtils.getCurrentUser();
Expand Down

0 comments on commit fdea480

Please sign in to comment.