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

added affair:self:add to /user/department

This commit is contained in:
assina045
2023-06-11 23:23:26 +08:00
parent 970682e83f
commit a44535c4ff

View File

@@ -71,7 +71,7 @@ public class UserController {
@Operation(summary = "获取同部门下所有用户")
@GetMapping("/department")
@PreAuthorize("hasAnyAuthority('work:manage:add', 'work:admin:add', 'attendance:manage:modify')")
@PreAuthorize("hasAnyAuthority('work:manage:add', 'work:admin:add', 'attendance:manage:modify', 'affair:self:add')")
public ResponseResult<List<User>> getDepartmentUser() {
return ResponseResult.databaseSelectSuccess(userService.getDepartmentUser());
}