Compare commits

..

2 Commits

Author SHA1 Message Date
ByungCheol d794549f66 Merge branch 'dev'
Deploy / deploy (push) Failing after 12m43s
CI / build (push) Failing after 14m31s
2026-06-27 23:00:14 +09:00
ByungCheol bf6fb97ed8 feat: 게시글 수정 시에도 공지 체크박스 반영 (관리자)
CI / build (push) Failing after 11m18s
- BoardService.update: 관리자면 req.notice 로 공지 갱신
  (작성/수정 체크박스로 공지 on/off, 상세 토글 버튼 제거 대응)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 22:59:04 +09:00
@@ -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));