Merge pull request 'BUG修复' (#67) from feature/dxf into develop

Reviewed-on: #67
pull/68/head
dxfeng 3 years ago
commit e130908126

@ -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