mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Histories, structure: fix job query to allow admin to view other history structures
This commit is contained in:
@@ -562,7 +562,7 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
hda_dictionaries = history_data[ 'contents' ]
|
||||
|
||||
jobs = ( trans.sa_session.query( trans.app.model.Job )
|
||||
.filter( trans.app.model.Job.user == trans.user )
|
||||
.filter( trans.app.model.Job.user == history_to_view.user )
|
||||
.filter( trans.app.model.Job.history_id == unencoded_history_id ) ).all()
|
||||
jobs = map( lambda j: self.encode_all_ids( trans, j.to_dict( 'element' ), True ), jobs )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user