Skip to content

Commit

Permalink
[HWORKS-740] Expat - disable provenance on existing projects (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
o-alex authored and SirOibaf committed Sep 17, 2023
1 parent d5a45a4 commit fdf6182
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,7 @@ public List<ProvDatasetDTO> getDatasetsProvType(Users user, Project project) thr

public ProvTypeDTO getMetaStatus(Users user, Project project, Boolean searchable) throws ProvenanceException {
if(searchable != null && searchable) {
ProvTypeDTO projectMetaStatus = getProjectProvType(user, project);
if(Inode.MetaStatus.DISABLED.equals(projectMetaStatus.getMetaStatus())) {
return Provenance.Type.META.dto;
} else {
return projectMetaStatus;
}
return getProjectProvType(user, project);
} else {
return Provenance.Type.DISABLED.dto;
}
Expand Down

0 comments on commit fdf6182

Please sign in to comment.