Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix word comment authority conditional statement #171

Merged
merged 1 commit into from
Sep 27, 2024
Merged

Conversation

miraexhoi
Copy link
Member

@miraexhoi miraexhoi commented Sep 27, 2024

๐Ÿ“Ž ๊ด€๋ จ Issue ๋ฒˆํ˜ธ

๐Ÿ“„ ์ž‘์—… ๋‚ด์šฉ ์š”์•ฝ

๋Œ“๊ธ€ ์‚ญ์ œ ๊ถŒํ•œ ์—๋Ÿฌ if ์กฐ๊ฑด๋ฌธ ์ˆ˜์ •์„ ํ†ตํ•ด ํ•ด๊ฒฐ

๐Ÿ™‹๐Ÿป ์ฃผ์˜ ๊นŠ๊ฒŒ ํ™•์ธํ•ด์•ผ ํ•˜๋Š” ์ฝ”๋“œ

๋ณ€๊ฒฝ ์ „

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

๋ณ€๊ฒฝ ํ›„

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

๐Ÿ“„ ๊ฐœ์„  ์‚ฌํ•ญ OR ์ฐธ๊ณ  ์‚ฌํ•ญ

x

@miraexhoi miraexhoi added the hotfix ๋‹น์žฅ ํ•ด๊ฒฐํ•ด์•ผ ํ•˜๋Š” ๋ฒ„๊ทธ ์ˆ˜์ • ์‹œ label Sep 27, 2024
@miraexhoi miraexhoi self-assigned this Sep 27, 2024
@miraexhoi miraexhoi merged commit ade1796 into main Sep 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotfix ๋‹น์žฅ ํ•ด๊ฒฐํ•ด์•ผ ํ•˜๋Š” ๋ฒ„๊ทธ ์ˆ˜์ • ์‹œ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

!hotfix :: fix word comment authority error
1 participant