From 2c1dbb88b5cbe0e51b5cfcfd810ba1c4fbf02923 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Thu, 17 Dec 2020 16:35:10 -0500 Subject: [PATCH] I guess we don't need that. --- lib/galaxy/webapps/galaxy/api/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/api/__init__.py b/lib/galaxy/webapps/galaxy/api/__init__.py index f2755833e215..c85e51d7aa11 100644 --- a/lib/galaxy/webapps/galaxy/api/__init__.py +++ b/lib/galaxy/webapps/galaxy/api/__init__.py @@ -74,7 +74,7 @@ def get_trans(app: UniverseApplication = Depends(get_app), user: Optional[User] return SessionRequestContext(app=app, user=user, galaxy_session=galaxy_session) -def get_admin_user(trans: SessionRequestContext = Depends(get_trans), user_manager: UserManager = Depends(get_user_manager)): +def get_admin_user(trans: SessionRequestContext = Depends(get_trans)): if not trans.user_is_admin: raise AdminRequiredException(require_admin_message(trans.app.config, trans.user)) return trans.user