- BoardService.update: 관리자면 req.notice 로 공지 갱신 (작성/수정 체크박스로 공지 on/off, 상세 토글 버튼 제거 대응) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user