Skip to content

Commit

Permalink
Merge pull request #184 from dnd-side-project/fix/#182
Browse files Browse the repository at this point in the history
Fix edit comments service logic
  • Loading branch information
miraexhoi authored Oct 10, 2024
2 parents 6ac7e7e + 22b5ba5 commit ca5b4f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void update(UpdateCommentInfoDto dto) {
Account writer = findAccount(dto.email());
Comment comment = findComment(dto.commentId());

if (comment.isOwner(writer.getId())) {
if (!comment.isOwner(writer.getId())) {
throw new ForbiddenUpdateCommentException();
}

Expand Down

0 comments on commit ca5b4f9

Please sign in to comment.