From 5c38ae867ac13a8c2ab01cca84f4d59c3f86a769 Mon Sep 17 00:00:00 2001 From: 15195 Date: Wed, 28 Jan 2026 20:58:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=8A=A8=E6=80=81?= =?UTF-8?q?=E8=A1=A8=E6=A0=BCbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/SimulationSystemConfigServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/system/src/main/java/com/sdm/system/service/impl/SimulationSystemConfigServiceImpl.java b/system/src/main/java/com/sdm/system/service/impl/SimulationSystemConfigServiceImpl.java index eb039f25..2ab6ae0c 100644 --- a/system/src/main/java/com/sdm/system/service/impl/SimulationSystemConfigServiceImpl.java +++ b/system/src/main/java/com/sdm/system/service/impl/SimulationSystemConfigServiceImpl.java @@ -386,10 +386,11 @@ public class SimulationSystemConfigServiceImpl extends BaseService implements IS // 非admin,只能自定义配置 boolean result = true; for(CIDRoleResp role : roles){ - adminRoleList.contains(role.getRoleCode()); - // 管理员角色 - result=false; - break; + if(adminRoleList.contains(role.getRoleCode())){ + // 管理员角色 + result=false; + break; + } } return result; }