From 91afd5c591ce6af77d96ec465af1b968e05f340b Mon Sep 17 00:00:00 2001 From: Carina Date: Thu, 10 Mar 2022 13:55:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90=E4=B8=BA=E5=85=A8=E9=83=A8?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=EF=BC=8C=E6=97=A0=E7=BB=84=E7=BB=87=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=9F=A5=E7=9C=8B=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../querybuilder/chain/QueryDataPermsHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 aa2cefc..47429ff 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 @@ -145,7 +145,10 @@ public class QueryDataPermsHandler implements QueryBuilderChain{ // 如果组织为空 则默认权限为查自己的数据 if(!ConditionType.SELF.equals(conditionType) && CollUtil.isEmpty(orgIdGroupList)){ - conditionType = ConditionType.SELF; + // 如果不是 查看全部数据 需要默认角色权限为只查自己 + if(!ConditionType.ALL.equals(conditionType)){ + conditionType = ConditionType.SELF; + } } }