BUG修复

pull/67/head
dxfeng 2 years ago
parent 17f4789e33
commit f9f5bc432c

@ -158,7 +158,7 @@ public class ExtServiceImpl extends Service implements ExtService {
Map<Long, List<ExtendInfoPO>> 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)) {

Loading…
Cancel
Save