部门列表不需要权限控制

This commit is contained in:
none 2023-03-06 10:56:35 +08:00
parent 9aa63dba66
commit 866b8e0759
3 changed files with 0 additions and 3 deletions

View File

@ -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},

View File

@ -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";

View File

@ -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));