1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-04 22:41:24 +08:00

modify the post of updateNoticeTop

This commit is contained in:
cccccyb
2023-06-10 16:05:50 +08:00
parent 48d5a829e3
commit 25f86ad1ac

View File

@@ -88,7 +88,7 @@ public class NoticeController {
}
//修改公告置顶状态
@PutMapping("/update_notice_top")
@PreAuthorize("hasAuthority('notice:self:get')")
@PreAuthorize("hasAuthority('notice:manage:get')")
public ResponseResult<?> updateNoticeTop(@RequestBody Notice notice) {
String operationMessage = notice.getTop() == 1 ? "取消置顶" : "置顶";
Boolean updateResult = noticeService.updateNoticeTop(notice);