mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
History grid, view: allow user to view their own histories
This commit is contained in:
@@ -847,7 +847,9 @@ class HistoryController( BaseUIController, SharableMixin, UsesAnnotations, UsesI
|
||||
if not history_to_view:
|
||||
return trans.show_error_message( "The specified history does not exist." )
|
||||
# Admin users can view any history
|
||||
if not trans.user_is_admin() and not history_to_view.importable:
|
||||
if( ( history_to_view.user != trans.user )
|
||||
and ( not trans.user_is_admin() )
|
||||
and ( not history_to_view.importable ) ):
|
||||
error( "Either you are not allowed to view this history or the owner of this history has not made it accessible." )
|
||||
# View history.
|
||||
show_deleted = util.string_as_bool( show_deleted )
|
||||
|
||||
Reference in New Issue
Block a user