mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix condition importing histories anonymously
This commit is contained in:
@@ -334,7 +334,7 @@ class HistoriesController(BaseGalaxyAPIController, ExportsHistoryMixin, ImportsH
|
||||
:rtype: dict
|
||||
:returns: element view of new history
|
||||
"""
|
||||
if trans.user.bootstrap_admin_user:
|
||||
if trans.user and trans.user.bootstrap_admin_user:
|
||||
raise exceptions.RealUserRequiredException("Only real users can create histories.")
|
||||
hist_name = None
|
||||
if payload.get('name', None):
|
||||
|
||||
Reference in New Issue
Block a user