Removed Bad Hack
This commit is contained in:
parent
1b0b84a7d2
commit
dca8fa83a0
|
@ -131,13 +131,6 @@ public class DataManagementPlanManager {
|
|||
if (fieldsGroup.equals("listing")) {
|
||||
itemsFuture = pagedItems.withHint(HintedModelFactory.getHint(DataManagementPlanListingModel.class))
|
||||
.selectAsync(item -> {
|
||||
if (item.getUsers().stream().noneMatch(userDMP -> userDMP.getRole().equals(UserDMP.UserDMPRoles.OWNER.getValue()))) {
|
||||
for (UserDMP userDMP: item.getUsers()) {
|
||||
userDMP.setRole(UserDMP.UserDMPRoles.OWNER.getValue());
|
||||
databaseRepository.getUserDmpDao().createOrUpdate(userDMP);
|
||||
break;
|
||||
}
|
||||
}
|
||||
item.setDataset(
|
||||
item.getDataset().stream()
|
||||
.filter(dataset -> !dataset.getStatus().equals(Dataset.Status.DELETED.getValue()) && !dataset.getStatus().equals(Dataset.Status.CANCELED.getValue())).collect(Collectors.toList()).stream()
|
||||
|
|
Loading…
Reference in New Issue