mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-25 02:39:31 +08:00
部门列表不需要权限控制
This commit is contained in:
parent
9aa63dba66
commit
866b8e0759
@ -31,7 +31,6 @@ public class AdminPermissionCheck implements ApplicationRunner {
|
||||
|
||||
{"管理员角色", "0", "管理员角色", BPermissionConstant.ADMIN_ROLE},
|
||||
|
||||
{"部门", "0", "部门-查看", BPermissionConstant.DEPARTMENT_INDEX},
|
||||
{"部门", "5", "部门-添加", BPermissionConstant.DEPARTMENT_STORE},
|
||||
{"部门", "10", "部门-编辑", BPermissionConstant.DEPARTMENT_UPDATE},
|
||||
{"部门", "15", "部门-删除", BPermissionConstant.DEPARTMENT_DESTROY},
|
||||
|
@ -16,7 +16,6 @@ public class BPermissionConstant {
|
||||
|
||||
public final static String ADMIN_ROLE = "admin-role";
|
||||
|
||||
public final static String DEPARTMENT_INDEX = "department-index";
|
||||
public final static String DEPARTMENT_STORE = "department-store";
|
||||
public final static String DEPARTMENT_UPDATE = "department-update";
|
||||
public final static String DEPARTMENT_DESTROY = "department-destroy";
|
||||
|
@ -33,7 +33,6 @@ public class DepartmentController {
|
||||
@Autowired
|
||||
private ApplicationContext ctx;
|
||||
|
||||
@BackendPermissionMiddleware(slug = BPermissionConstant.DEPARTMENT_INDEX)
|
||||
@GetMapping("/index")
|
||||
public JsonResponse index() {
|
||||
Map<Integer, List<Department>> departments = departmentService.all().stream().collect(Collectors.groupingBy(Department::getParentId));
|
||||
|
Loading…
x
Reference in New Issue
Block a user