bugfix
This commit is contained in:
parent
286c8a6c44
commit
8beb5dbc99
@ -64,7 +64,7 @@ class AuthAPI(AppLogger):
|
|||||||
is_ok = await self.checkUserPermission(user, path)
|
is_ok = await self.checkUserPermission(user, path)
|
||||||
if is_ok:
|
if is_ok:
|
||||||
return await handler(request)
|
return await handler(request)
|
||||||
# print(f'**{path} forbidden**')
|
print(f'**{user=}, {path} forbidden**')
|
||||||
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