Commit 681a231f authored by Matija Obreza's avatar Matija Obreza

Only list published Subsets for Accession

parent b898a6d1
......@@ -552,7 +552,7 @@ public class SubsetServiceImpl implements SubsetService {
@Override
public List<Subset> listByAccession(Accession accession) {
return (List<Subset>) subsetRepository.findAll(QSubset.subset.accessionRefs.any().accession.eq(accession));
return (List<Subset>) subsetRepository.findAll(QSubset.subset.state.in(PublishState.PUBLISHED).and(QSubset.subset.accessionRefs.any().accession.eq(accession)));
}
@Transactional
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment