From cff306b86bc6368b4489805b96f92da04761c013 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Sun, 20 Aug 2017 11:24:09 +0200 Subject: [PATCH] Only skip check_security checks if check_ownership and check_accessible are false --- 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 508a673ac8f..10349db63d0 100644 --- a/lib/galaxy/managers/workflows.py +++ b/lib/galaxy/managers/workflows.py @@ -87,7 +87,7 @@ class WorkflowsManager(object): workflowinvocations. Throw an exception or returns True if user has needed level of access. """ - if not check_ownership or check_accessible: + if not check_ownership and not check_accessible: return True # If given an invocation verify ownership of invocation