Unverified Commit 995dff94 authored by davelopez's avatar davelopez
Browse files

Check for history attribute before mutability check in DatasetsService

LDDAs don't have a history attribute.
parent 58d64fa9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -735,6 +735,7 @@ class DatasetsService(ServiceBase, UsesVisualizationMixin):
            try:
                manager = self.dataset_manager_by_type[dataset.src]
                dataset_instance = manager.get_owned(dataset.id, trans.user)
                if hasattr(dataset_instance, "history"):
                    manager.error_unless_mutable(dataset_instance.history)
                if dataset.src == DatasetSourceType.hda:
                    self.hda_manager.error_if_uploading(dataset_instance)