Skip to content

Commit

Permalink
fix :: fix edit comments service logic
Browse files Browse the repository at this point in the history
  • Loading branch information
miraexhoi committed Oct 10, 2024
1 parent 6ac7e7e commit 22b5ba5
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 22b5ba5

Please sign in to comment.