Skip to content

Commit

Permalink
[24.0] Prevent anonymous users from running workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed May 22, 2024
1 parent eef864a commit d0e460c
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 d0e460c

Please sign in to comment.