Skip to content

fix: 관리자 게시글/댓글 수정·삭제 버튼 표시#643

Merged
sdk-kr merged 1 commit into
mainfrom
fix/admin-edit-delete-buttons
Mar 15, 2026
Merged

fix: 관리자 게시글/댓글 수정·삭제 버튼 표시#643
sdk-kr merged 1 commit into
mainfrom
fix/admin-edit-delete-buttons

Conversation

@sdk-kr
Copy link
Copy Markdown
Contributor

@sdk-kr sdk-kr commented Mar 15, 2026

Summary

  • 관리자(mb_level >= 10)에게 모든 게시글/댓글의 수정·삭제 버튼 표시
  • 게시글: canModify = isAuthor || isAdmin 조건 추가
  • 댓글: canEditComment()에서 관리자면 대댓글 유무 무관하게 수정/삭제 가능

Test plan

  • 관리자 계정으로 타인 게시글에서 수정/삭제 버튼 표시 확인
  • 관리자 계정으로 타인 댓글에서 수정/삭제 버튼 표시 확인
  • 일반 사용자는 본인 글/댓글만 수정/삭제 가능 (기존 동작 유지)

mb_level >= 10인 관리자도 모든 글·댓글의 수정/삭제가 가능하도록
isAuthor 체크에 isAdmin 조건 추가.
@github-actions
Copy link
Copy Markdown
Contributor

Staging 배포 완료

URL: https://dev.damoang.net
이미지: staging-94fa53f
Static Release: sha-94fa53f
커밋: 94fa53f

변경사항을 dev.damoang.net에서 확인하세요.

@sdk-kr sdk-kr marked this pull request as ready for review March 15, 2026 16:04
@sdk-kr sdk-kr merged commit c60263d into main Mar 15, 2026
13 checks passed
@sdk-kr sdk-kr deleted the fix/admin-edit-delete-buttons branch March 15, 2026 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant