bugfix
This commit is contained in:
parent
5e03d611dc
commit
e438dc132a
@ -60,6 +60,8 @@ class AuthAPI(AppLogger):
|
|||||||
print(f'**{user=}, {path} access **')
|
print(f'**{user=}, {path} access **')
|
||||||
return await handler(request)
|
return await handler(request)
|
||||||
print(f'**{user=}, {path} forbidden**')
|
print(f'**{user=}, {path} forbidden**')
|
||||||
|
if user is None:
|
||||||
|
raise web.HTTPUnauthorized
|
||||||
raise web.HTTPForbidden()
|
raise web.HTTPForbidden()
|
||||||
|
|
||||||
async def checkUserPermission(self, user, path):
|
async def checkUserPermission(self, user, path):
|
||||||
|
Loading…
Reference in New Issue
Block a user