diff --git a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/persistence/querybuilder/chain/QueryDataPermsHandler.java b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/persistence/querybuilder/chain/QueryDataPermsHandler.java index a4b98ff..aa2cefc 100644 --- a/opsli-base-support/opsli-core/src/main/java/org/opsli/core/persistence/querybuilder/chain/QueryDataPermsHandler.java +++ b/opsli-base-support/opsli-core/src/main/java/org/opsli/core/persistence/querybuilder/chain/QueryDataPermsHandler.java @@ -141,14 +141,13 @@ public class QueryDataPermsHandler implements QueryBuilderChain{ if(null != defRole){ conditionType = ConditionType.getConditionType(defRole.getDataScope()); } - } - // 如果组织为空 则默认权限为查自己的数据 - if(!ConditionType.SELF.equals(conditionType) && - CollUtil.isEmpty(orgIdGroupList)){ - conditionType = ConditionType.SELF; - } - + // 如果组织为空 则默认权限为查自己的数据 + if(!ConditionType.SELF.equals(conditionType) && + CollUtil.isEmpty(orgIdGroupList)){ + conditionType = ConditionType.SELF; + } + } // 常量 final ConditionType finalConditionType = conditionType;