mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Require login to perform visualization (otherwise we have no way to store them)
This commit is contained in:
@@ -63,6 +63,7 @@ class TracksController( BaseController ):
|
||||
return trans.fill_template( "tracks/index.mako" )
|
||||
|
||||
@web.expose
|
||||
@web.require_login()
|
||||
def new_browser( self, trans, dbkey=None, dataset_ids=None, browse=None, title=None ):
|
||||
"""
|
||||
Build a new browser from datasets in the current history. Redirects
|
||||
|
||||
@@ -28,11 +28,13 @@ class VisualizationListGrid( grids.Grid ):
|
||||
class VisualizationController( BaseController ):
|
||||
|
||||
@web.expose
|
||||
@web.require_login()
|
||||
def index( self, trans ):
|
||||
return trans.fill_template( "panels.mako", active_view='visualization', main_url=url_for( action='list' ) )
|
||||
|
||||
list_grid = VisualizationListGrid()
|
||||
@web.expose
|
||||
@web.require_login()
|
||||
def list( self, trans, *args, **kwargs ):
|
||||
return self.list_grid( trans, *args, **kwargs )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user