mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Constrain workflow tool panel entries to those not deleted.
This commit is contained in:
@@ -1762,6 +1762,11 @@ mapper(model.User, model.User.table, properties=dict(
|
||||
galaxy_sessions=relation(model.GalaxySession,
|
||||
order_by=desc(model.GalaxySession.table.c.update_time)),
|
||||
stored_workflow_menu_entries=relation(model.StoredWorkflowMenuEntry,
|
||||
primaryjoin=(
|
||||
(model.StoredWorkflowMenuEntry.table.c.user_id == model.User.table.c.id) &
|
||||
(model.StoredWorkflowMenuEntry.table.c.stored_workflow_id == model.StoredWorkflow.table.c.id) &
|
||||
not_(model.StoredWorkflow.table.c.deleted)
|
||||
),
|
||||
backref="user",
|
||||
cascade="all, delete-orphan",
|
||||
collection_class=ordering_list('order_index')),
|
||||
|
||||
Reference in New Issue
Block a user