From 576c99e071bd2bd70c05eceac4984391dd070ffe Mon Sep 17 00:00:00 2001 From: qiufeng Date: Sat, 27 May 2023 22:58:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E7=BB=84=E7=BB=87?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=A7=92=E8=89=B2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/com/mfish/oauth/service/impl/SsoOrgServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mf-oauth/src/main/java/cn/com/mfish/oauth/service/impl/SsoOrgServiceImpl.java b/mf-oauth/src/main/java/cn/com/mfish/oauth/service/impl/SsoOrgServiceImpl.java index 7ddb4fb3..859b5387 100644 --- a/mf-oauth/src/main/java/cn/com/mfish/oauth/service/impl/SsoOrgServiceImpl.java +++ b/mf-oauth/src/main/java/cn/com/mfish/oauth/service/impl/SsoOrgServiceImpl.java @@ -117,6 +117,9 @@ public class SsoOrgServiceImpl extends ServiceImpl impleme throw new MyRuntimeException("错误:手机号不正确"); } } + if (AuthInfoUtils.isContainSuperAdmin(ssoOrg.getRoleIds())) { + throw new MyRuntimeException("错误:不允许设置为超户!"); + } return Result.ok("组织校验成功"); }