From 2d16470132b86fb04bd67665bbdaf20e55874170 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 20 Aug 2017 11:21:01 +0200 Subject: [PATCH] Allow admin user to view workflow invocation (thx @nsoranzo) --- lib/galaxy/managers/workflows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/managers/workflows.py b/lib/galaxy/managers/workflows.py index 0f58e3f7b2e..508a673ac8f 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -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