bugfix
This commit is contained in:
parent
188ce21b83
commit
4fa991b70f
@ -144,7 +144,6 @@ async def getAuthenticationUserid(sor, request):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
async def objcheckperm(obj, request, userid, path):
|
async def objcheckperm(obj, request, userid, path):
|
||||||
debug(f'check permission: {userid=}, {path=}')
|
|
||||||
sql = """select distinct a.*, c.userid from
|
sql = """select distinct a.*, c.userid from
|
||||||
(select id, path from permission where path=${path}$) a
|
(select id, path from permission where path=${path}$) a
|
||||||
right join
|
right join
|
||||||
@ -163,7 +162,7 @@ where c.userid = ${userid}$
|
|||||||
if not ret:
|
if not ret:
|
||||||
roles = await uperm.get_user_roles(userid)
|
roles = await uperm.get_user_roles(userid)
|
||||||
rp_keys = [k for k in uperm.rp_caches.keys()]
|
rp_keys = [k for k in uperm.rp_caches.keys()]
|
||||||
debug(f'{userid=}, {path=} permission is {ret},userroles={roles}')
|
debug(f'{userid=}, {path=} permission check failed,userroles={roles}')
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
registered_auth_methods = {
|
registered_auth_methods = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user