feat: 게시글 수정 시에도 공지 체크박스 반영 (관리자)
CI / build (push) Failing after 11m18s

- BoardService.update: 관리자면 req.notice 로 공지 갱신
  (작성/수정 체크박스로 공지 on/off, 상세 토글 버튼 제거 대응)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-27 22:59:04 +09:00
parent 8d8d26ec3a
commit bf6fb97ed8
@@ -137,6 +137,11 @@ public class BoardService {
post.setContent(req.getContent()); post.setContent(req.getContent());
postMapper.update(post); postMapper.update(post);
// 공지는 관리자만 변경 (수정 화면 체크박스 반영)
if (isAdmin(user)) {
postMapper.updateNotice(id, Boolean.TRUE.equals(req.getNotice()));
}
tagMapper.deletePostTagsByPostId(id); tagMapper.deletePostTagsByPostId(id);
applyTags(id, req.getTagIds()); applyTags(id, req.getTagIds());
return assemble(mustFindPost(id)); return assemble(mustFindPost(id));