Allow admin user to view workflow invocation (thx @nsoranzo)

This commit is contained in:
mvdbeek
2017-08-20 11:21:01 +02:00
parent 80e264d35f
commit 2d16470132
+1 -1
View File
@@ -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