Skip to content

Commit

Permalink
수정 예외처리 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Johyunik committed Nov 30, 2023
1 parent dc4c17e commit cdc5be4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/weatherfit/board/service/BoardService.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,7 @@ public void patchBoard(int boardId, BoardUpdateDTO boardUpdateDTO, MultipartFile

System.out.println(originalBoard.getNickName().toString());

if (!originalBoard.getNickName().equals(nickName)) {
throw new IllegalArgumentException("게시글 수정 권한이 없습니다.");
}


List<Integer> imageIdsToDelete = boardUpdateDTO.getImageIdsToDelete();
if (imageIdsToDelete != null && !imageIdsToDelete.isEmpty()) {
Expand Down

0 comments on commit cdc5be4

Please sign in to comment.