From f9f5bc432c053ab5380c7f82f190f3d232d20f8e Mon Sep 17 00:00:00 2001 From: dxfeng Date: Wed, 16 Nov 2022 15:23:56 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/engine/organization/service/impl/ExtServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/engine/organization/service/impl/ExtServiceImpl.java b/src/com/engine/organization/service/impl/ExtServiceImpl.java index 003ac311..8e28764a 100644 --- a/src/com/engine/organization/service/impl/ExtServiceImpl.java +++ b/src/com/engine/organization/service/impl/ExtServiceImpl.java @@ -158,7 +158,7 @@ public class ExtServiceImpl extends Service implements ExtService { Map> allFields = infoPOList.stream().collect(Collectors.groupingBy(ExtendInfoPO::getExtendGroupId)); //TODO 控制展示权限 boolean checkRight = true; - if ("4".equals(extendType) && !user.isAdmin()) { + if (2 == viewAttr && "4".equals(extendType) && !user.isAdmin()) { checkRight = false; String ecResourceId = MapperProxyFactory.getProxy(HrmResourceMapper.class).getEcResourceId(String.valueOf(id)); if (Util.null2String(user.getUID()).equals(ecResourceId)) {