diff --git a/lib/galaxy/webapps/galaxy/api/history_contents.py b/lib/galaxy/webapps/galaxy/api/history_contents.py index 7f027c7af01..d21b26c3b94 100644 --- a/lib/galaxy/webapps/galaxy/api/history_contents.py +++ b/lib/galaxy/webapps/galaxy/api/history_contents.py @@ -299,7 +299,7 @@ class HistoryContentsController(BaseAPIController, UsesLibraryMixin, UsesLibrary # copy from library dataset hda = None if source == 'library': - ld = self.get_library_dataset(trans, content, check_ownership=False, check_accessible=False) + ld = self.get_library_dataset(trans, content) # TODO: why would get_library_dataset NOT return a library dataset? if type(ld) is not trans.app.model.LibraryDataset: raise exceptions.RequestParameterInvalidException(