Skip to content

Commit

Permalink
refactor: (#224) 작성자가 아니면 예외 처리하는 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtls690 committed Aug 3, 2023
1 parent b4e3c22 commit 053a1f7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ public PostDetailResponse getPostById(final Long postId, final Member loginMembe
final Post post = postRepository.findById(postId)
.orElseThrow(() -> new NotFoundException(PostExceptionType.POST_NOT_FOUND));

post.validateWriter(loginMember);

return PostDetailResponse.of(post, loginMember);
}

Expand Down

0 comments on commit 053a1f7

Please sign in to comment.