Skip to content

Commit

Permalink
Merge pull request #18235 from mvdbeek/accessible_followup
Browse files Browse the repository at this point in the history
[24.0] Fix element serialization for collections that aren't populated yet
  • Loading branch information
davelopez authored May 28, 2024
2 parents 316eb5b + 0359063 commit ce53c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/services/dataset_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ce53c7c

Please sign in to comment.