feat: 增加组织设置角色逻辑

This commit is contained in:
qiufeng
2023-05-27 22:58:20 +08:00
parent e6d1c4d179
commit 576c99e071
@@ -117,6 +117,9 @@ public class SsoOrgServiceImpl extends ServiceImpl<SsoOrgMapper, SsoOrg> impleme
throw new MyRuntimeException("错误:手机号不正确");
}
}
if (AuthInfoUtils.isContainSuperAdmin(ssoOrg.getRoleIds())) {
throw new MyRuntimeException("错误:不允许设置为超户!");
}
return Result.ok("组织校验成功");
}