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.