mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
Added permission verification to getDepartAndUser
This commit is contained in:
@@ -35,6 +35,7 @@ public class DepartmentController {
|
||||
|
||||
//获取所有部门及其各部门所属成员
|
||||
@GetMapping("/user")
|
||||
@PreAuthorize("hasAuthority('notice:manage:add')")
|
||||
public ResponseResult<List<Department>> getDepartAndUser() {
|
||||
return ResponseResult.databaseSelectSuccess(departmentService.getDepartmentWithUser());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user