From d582f98014df1c5bad0406b5e04b6a686ec5a1f4 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Mon, 29 Jul 2024 10:43:42 -0400 Subject: [PATCH] Do not allow import by uuid. --- lib/galaxy/model/store/__init__.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/galaxy/model/store/__init__.py b/lib/galaxy/model/store/__init__.py index 59438bd5d920..389dd2801d31 100644 --- a/lib/galaxy/model/store/__init__.py +++ b/lib/galaxy/model/store/__init__.py @@ -578,10 +578,11 @@ def handle_dataset_object_edit(dataset_instance, dataset_attrs): self._attach_raw_id_if_editing(dataset_instance, dataset_attrs) # Older style... - if "uuid" in dataset_attrs: - dataset_instance.dataset.uuid = dataset_attrs["uuid"] - if "dataset_uuid" in dataset_attrs: - dataset_instance.dataset.uuid = dataset_attrs["dataset_uuid"] + if self.import_options.allow_edit: + if "uuid" in dataset_attrs: + dataset_instance.dataset.uuid = dataset_attrs["uuid"] + if "dataset_uuid" in dataset_attrs: + dataset_instance.dataset.uuid = dataset_attrs["dataset_uuid"] self._session_add(dataset_instance)