mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Modify set status methods in WorkController
This commit is contained in:
@@ -89,7 +89,7 @@ public class WorkController {
|
||||
}
|
||||
}
|
||||
|
||||
@PutMapping("/setStatus")
|
||||
@PutMapping("/set_status")
|
||||
@PreAuthorize("hasAuthority('work:self:status') and hasAuthority('work:self:get')")
|
||||
public ResponseResult<UserWork> updateStatus(@RequestBody UserWork userWork) {
|
||||
userWork.setUserId(WebUtil.getLoginUser().getUser().getId());
|
||||
|
||||
Reference in New Issue
Block a user