bugfix
This commit is contained in:
parent
d2c9056d25
commit
5b07d8606b
@ -45,7 +45,7 @@ async def main():
|
|||||||
if '%' in path:
|
if '%' in path:
|
||||||
perms = await sor.sqlExe("select * from permission where path like ${path}$", {'path': path})
|
perms = await sor.sqlExe("select * from permission where path like ${path}$", {'path': path})
|
||||||
else:
|
else:
|
||||||
perms = await sor.R('permission', {'path', path})
|
perms = await sor.R('permission', {'path': path})
|
||||||
if role in ['anonymous', 'logined']:
|
if role in ['anonymous', 'logined']:
|
||||||
for p in perms:
|
for p in perms:
|
||||||
await add_roleperm(sor, role, p.id)
|
await add_roleperm(sor, role, p.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user