2021与蓝度共同重构项目,服务端
zhanzhiqin
2022-05-27 b2cf36ae92e61534f9d2e02068bff0f5127272bc
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("无法添加超级管理员");
        }