From 3452427c526460491d35d3588dd24a9cd1338836 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 25 Jun 2023 11:04:41 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 71cfc0b..abfdac2 100755 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -57,11 +57,11 @@ class AuthAPI(AppLogger): user = await auth.get_auth(request) is_ok = await self.checkUserPermission(user, path) if is_ok: - print(f'**{user=}, {path} access **') return await handler(request) - print(f'**{user=}, {path} forbidden**') if user is None: + print(f'**{user=}, {path} need login**') raise web.HTTPUnauthorized + print(f'**{user=}, {path} forbidden**') raise web.HTTPForbidden() async def checkUserPermission(self, user, path):