Skip to content

Commit

Permalink
Do not display public and shared workflows authored by deleted users
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Jan 10, 2025
1 parent d19a74b commit 6611c17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/galaxy/managers/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ def index_query(
filters.append(StoredWorkflow.published == true())

stmt = select(StoredWorkflow)

# Do not include workflows authored by deleted users
if show_published or show_shared:
stmt = stmt.join(StoredWorkflow.user).where(and_(User.deleted == false(), User.purged == false()))

if show_shared:
stmt = stmt.outerjoin(StoredWorkflow.users_shared_with)
stmt = stmt.outerjoin(StoredWorkflow.tags)
Expand Down

0 comments on commit 6611c17

Please sign in to comment.