Loading lib/galaxy/managers/collections.py +1 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,7 @@ class DatasetCollectionManager: raise RequestParameterInvalidException("History dataset collection association not found") # TODO: that sure looks like a bug, we can't check ownership using the history of the object we're checking ownership for ... history = getattr(trans, "history", collection_instance.history) if check_ownership and collection_instance.history.published is False: if check_ownership: self.history_manager.error_unless_owner(collection_instance.history, trans.user, current_history=history) if check_accessible: self.history_manager.error_unless_accessible( Loading lib/galaxy/webapps/galaxy/services/dataset_collections.py +1 −1 Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ class DatasetCollectionsService(ServiceBase, UsesLibraryMixinItems): "Parameter instance_type not being 'history' is not yet implemented." ) hdca: "HistoryDatasetCollectionAssociation" = self.collection_manager.get_dataset_collection_instance( trans, "history", hdca_id, check_ownership=True trans, "history", hdca_id ) # check to make sure the dsc is part of the validated hdca Loading Loading
lib/galaxy/managers/collections.py +1 −1 Original line number Diff line number Diff line Loading @@ -807,7 +807,7 @@ class DatasetCollectionManager: raise RequestParameterInvalidException("History dataset collection association not found") # TODO: that sure looks like a bug, we can't check ownership using the history of the object we're checking ownership for ... history = getattr(trans, "history", collection_instance.history) if check_ownership and collection_instance.history.published is False: if check_ownership: self.history_manager.error_unless_owner(collection_instance.history, trans.user, current_history=history) if check_accessible: self.history_manager.error_unless_accessible( Loading
lib/galaxy/webapps/galaxy/services/dataset_collections.py +1 −1 Original line number Diff line number Diff line Loading @@ -250,7 +250,7 @@ class DatasetCollectionsService(ServiceBase, UsesLibraryMixinItems): "Parameter instance_type not being 'history' is not yet implemented." ) hdca: "HistoryDatasetCollectionAssociation" = self.collection_manager.get_dataset_collection_instance( trans, "history", hdca_id, check_ownership=True trans, "history", hdca_id ) # check to make sure the dsc is part of the validated hdca Loading