This commit is contained in:
yumoqing 2024-11-11 15:55:54 +08:00
parent 6b7d779d40
commit 59d517cbd5

View File

@ -151,7 +151,8 @@ class AuthAPI:
info(f'checkAuth() called ... {request.path=}') info(f'checkAuth() called ... {request.path=}')
t1 = time.time() t1 = time.time()
path = request.path 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) is_ok = await self.checkUserPermission(user, path)
t2 = time.time() t2 = time.time()
ip = get_client_ip(None, request) ip = get_client_ip(None, request)