Skip to content

Commit

Permalink
[24.0] Prevent anonymous users from running workflows
Browse files Browse the repository at this point in the history
Fixes #18147
  • Loading branch information
ahmedhamidawan authored and mvdbeek committed May 23, 2024
1 parent 5fbe24d commit 7d72d2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/webapps/galaxy/services/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def invoke_workflow(
workflow_id,
payload: InvokeWorkflowPayload,
) -> Union[WorkflowInvocationResponse, List[WorkflowInvocationResponse]]:
if trans.anonymous:
raise exceptions.AuthenticationRequired("You need to be logged in to run workflows.")
# Get workflow + accessibility check.
by_stored_id = not payload.instance
stored_workflow = self._workflows_manager.get_stored_accessible_workflow(trans, workflow_id, by_stored_id)
Expand Down

0 comments on commit 7d72d2f

Please sign in to comment.