Skip to content

Commit 5250794

Browse files
authored
Merge pull request #20629 from mvdbeek/backport_user_requirement_vis
[24.2] Require user for visualizations create endpoint
2 parents 777ec1e + ad25c45 commit 5250794

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/galaxy/webapps/galaxy/api/visualizations.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from typing_extensions import Annotated
1919

2020
from galaxy.managers.context import ProvidesUserContext
21+
from galaxy.model import User
2122
from galaxy.schema.fields import DecodedDatabaseIdField
2223
from galaxy.schema.schema import (
2324
SetSlugPayload,
@@ -38,6 +39,7 @@
3839
from galaxy.webapps.galaxy.api import (
3940
depends,
4041
DependsOnTrans,
42+
DependsOnUser,
4143
IndexQueryTag,
4244
Router,
4345
search_query_param,
@@ -254,6 +256,7 @@ def create(
254256
None, title="Import ID", description="The encoded database identifier of the Visualization to import."
255257
),
256258
trans: ProvidesUserContext = DependsOnTrans,
259+
user: User = DependsOnUser,
257260
) -> VisualizationCreateResponse:
258261
"""
259262
Creates a new visualization using the given payload and does not require the import_id field.

0 commit comments

Comments
 (0)