Merge branch 'dev'
This commit is contained in:
@@ -137,6 +137,11 @@ public class BoardService {
|
||||
post.setContent(req.getContent());
|
||||
postMapper.update(post);
|
||||
|
||||
// 공지는 관리자만 변경 (수정 화면 체크박스 반영)
|
||||
if (isAdmin(user)) {
|
||||
postMapper.updateNotice(id, Boolean.TRUE.equals(req.getNotice()));
|
||||
}
|
||||
|
||||
tagMapper.deletePostTagsByPostId(id);
|
||||
applyTags(id, req.getTagIds());
|
||||
return assemble(mustFindPost(id));
|
||||
|
||||
Reference in New Issue
Block a user