diff --git a/wedpr-components/dataset/src/main/java/com/webank/wedpr/components/dataset/service/DatasetServiceImpl.java b/wedpr-components/dataset/src/main/java/com/webank/wedpr/components/dataset/service/DatasetServiceImpl.java index 2025d8dc..b3f54f6b 100644 --- a/wedpr-components/dataset/src/main/java/com/webank/wedpr/components/dataset/service/DatasetServiceImpl.java +++ b/wedpr-components/dataset/src/main/java/com/webank/wedpr/components/dataset/service/DatasetServiceImpl.java @@ -532,6 +532,16 @@ public ListDatasetResponse listDataset( startTime, endTime); + if (!datasetList.isEmpty()) { + for (Dataset dataset : datasetList) { + String datasetId = dataset.getDatasetId(); + DatasetUserPermissions datasetUserPermissions = + DatasetUserPermissionValidator.confirmUserDatasetPermissions( + datasetId, userInfo, datasetPermissionMapper, false); + dataset.setPermissions(datasetUserPermissions); + } + } + long totalCount = new PageInfo<>(datasetList).getTotal(); long pageEndOffset = (long) pageNum * pageSize; boolean isLast = (pageEndOffset >= totalCount);