From 59d517cbd54d2aff699dc8a4f64317343637bdcc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 11 Nov 2024 15:55:54 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 3c940c3..dfddc47 100755 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -151,7 +151,8 @@ class AuthAPI: info(f'checkAuth() called ... {request.path=}') t1 = time.time() path = request.path - user = await auth.get_auth(request) + info = await get_session_userinfo(request) + user = info.userid is_ok = await self.checkUserPermission(user, path) t2 = time.time() ip = get_client_ip(None, request)