2021与蓝度共同重构项目,服务端
liuhaonan
2022-05-27 3885a00f7b152256f865ad8ccc4566dd43681085
ximon-admin/src/main/java/com/sandu/ximon/admin/service/ClientService.java
@@ -74,8 +74,8 @@
        if (role == null) {
            throw new BusinessException("角色不存在");
        }
        if (!RoleLevelStatus.NORMAL.getCode().equals(role.getLevel())) {
            throw new BusinessException("无法添加超级管理员或用户管理员");
        if (RoleLevelStatus.SUPER.getCode().equals(role.getLevel())) {
            throw new BusinessException("无法添加超级管理员");
        }