From a5783a0c40b479a3bf41e35e9dca616530f7b68e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 28 Mar 2022 20:04:49 +0000 Subject: [PATCH] fix: typing --- api/kiwi_vpn_api/routers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/routers/admin.py b/api/kiwi_vpn_api/routers/admin.py index f0ee109..36b3332 100644 --- a/api/kiwi_vpn_api/routers/admin.py +++ b/api/kiwi_vpn_api/routers/admin.py @@ -78,7 +78,7 @@ async def create_initial_admin( ) async def set_config( config: Config, - _: User | None = Depends(get_current_user_if_admin), + _: User = Depends(get_current_user_if_admin), ): """ PUT ./config: Edit `kiwi-vpn` main config.