Browse Source

1.获取权限列表:增加角色列表是否为空的判断

dev_shibei_match
wxz 5 years ago
parent
commit
cc7cf95fb3
  1. 11
      epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/service/impl/AccessServiceImpl.java

11
epmet-module/gov-access/gov-access-server/src/main/java/com/epmet/service/impl/AccessServiceImpl.java

@ -497,11 +497,12 @@ public class AccessServiceImpl implements AccessService {
Set<String> filtedOps = new HashSet<>();
roleIdList.forEach(roleId -> {
List<RoleOpeScopeResultDTO> opeAndScopeDTO = listAllRoleOperationScopesByRoleId(roleId);
filtedOps.addAll(filterOpesByScope(currOrgRelation, opeAndScopeDTO));
});
if (!CollectionUtils.isEmpty(roleIdList)) {
roleIdList.forEach(roleId -> {
List<RoleOpeScopeResultDTO> opeAndScopeDTO = listAllRoleOperationScopesByRoleId(roleId);
filtedOps.addAll(filterOpesByScope(currOrgRelation, opeAndScopeDTO));
});
}
return filtedOps;
}

Loading…
Cancel
Save