Skip to content

Commit

Permalink
Only allow admin users to sync workflows to filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 27, 2024
1 parent f631f62 commit 91fc1d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,9 @@ def to_format_2(wf_dict, **kwds):
return wf_dict

def _sync_stored_workflow(self, trans, stored_workflow):
workflow_path = stored_workflow.from_path
self.store_workflow_to_path(workflow_path, stored_workflow, stored_workflow.latest_workflow, trans=trans)
if trans.user_is_admin:
workflow_path = stored_workflow.from_path
self.store_workflow_to_path(workflow_path, stored_workflow, stored_workflow.latest_workflow, trans=trans)

def store_workflow_artifacts(self, directory, filename_base, workflow, **kwd):
modern_workflow_path = os.path.join(directory, f"{filename_base}.gxwf.yml")
Expand Down

0 comments on commit 91fc1d8

Please sign in to comment.