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:
@@ -71,7 +71,7 @@ public class UserController {
|
|||||||
|
|
||||||
@Operation(summary = "获取同部门下所有用户")
|
@Operation(summary = "获取同部门下所有用户")
|
||||||
@GetMapping("/department")
|
@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() {
|
public ResponseResult<List<User>> getDepartmentUser() {
|
||||||
return ResponseResult.databaseSelectSuccess(userService.getDepartmentUser());
|
return ResponseResult.databaseSelectSuccess(userService.getDepartmentUser());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user