mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 00:12:08 +08:00
Enable visualizations for anonymous user
This commit is contained in:
@@ -617,7 +617,6 @@ export function getRouter(Galaxy) {
|
||||
component: VisualizationCreate,
|
||||
name: "VisualizationsCreate",
|
||||
props: true,
|
||||
redirect: redirectAnon(),
|
||||
},
|
||||
{
|
||||
path: "visualizations/display",
|
||||
|
||||
@@ -10,10 +10,7 @@ from galaxy.managers import (
|
||||
histories,
|
||||
)
|
||||
from galaxy.util import asbool
|
||||
from galaxy.web import (
|
||||
expose_api,
|
||||
expose_api_anonymous_and_sessionless,
|
||||
)
|
||||
from galaxy.web import expose_api_anonymous_and_sessionless
|
||||
from . import (
|
||||
BaseGalaxyAPIController,
|
||||
depends,
|
||||
@@ -42,7 +39,7 @@ class PluginsController(BaseGalaxyAPIController):
|
||||
target_object = self.hda_manager.get_accessible(self.decode_id(dataset_id), trans.user)
|
||||
return registry.get_visualizations(trans, target_object=target_object, embeddable=embeddable)
|
||||
|
||||
@expose_api
|
||||
@expose_api_anonymous_and_sessionless
|
||||
def show(self, trans, id, **kwargs):
|
||||
"""
|
||||
GET /api/plugins/{id}:
|
||||
|
||||
@@ -218,7 +218,6 @@ class VisualizationController(
|
||||
|
||||
# ------------------------- registry.
|
||||
@web.expose
|
||||
@web.require_login("use Galaxy visualizations", use_panels=True)
|
||||
def render(self, trans, visualization_name, embedded=None, **kwargs):
|
||||
"""
|
||||
Render the appropriate visualization template, parsing the `kwargs`
|
||||
|
||||
Reference in New Issue
Block a user