mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow admin user to view workflow invocation (thx @nsoranzo)
This commit is contained in:
@@ -94,7 +94,7 @@ class WorkflowsManager(object):
|
||||
if isinstance(has_workflow, model.WorkflowInvocation):
|
||||
# We use the the owner of the history that is associated to the invocation as a proxy
|
||||
# for the owner of the invocation.
|
||||
if trans.user != has_workflow.history.user:
|
||||
if trans.user != has_workflow.history.user and not trans.user_is_admin():
|
||||
raise exceptions.ItemOwnershipException()
|
||||
else:
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user