diff --git a/lib/galaxy/webapps/galaxy/services/dataset_collections.py b/lib/galaxy/webapps/galaxy/services/dataset_collections.py index 40d32be49e7e..52b3a37fa7f3 100644 --- a/lib/galaxy/webapps/galaxy/services/dataset_collections.py +++ b/lib/galaxy/webapps/galaxy/services/dataset_collections.py @@ -273,7 +273,7 @@ def serialize_element(dsc_element) -> DCESummary: hdca_id=self.encode_id(hdca.id), parent_id=self.encode_id(result["object"]["id"]), ) - else: + elif result["element_type"] == DCEType.hda: result["object"]["accessible"] = self.hda_manager.is_accessible(dsc_element.element_object, trans.user) return result