Skip to content

Commit

Permalink
I guess we don't need that.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton authored and mvdbeek committed Dec 22, 2020
1 parent be50dbe commit 2c1dbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/webapps/galaxy/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2c1dbb8

Please sign in to comment.