This commit is contained in:
yumoqing 2026-03-20 15:53:38 +08:00
parent d2c9056d25
commit 5b07d8606b

View File

@ -45,7 +45,7 @@ async def main():
if '%' in path:
perms = await sor.sqlExe("select * from permission where path like ${path}$", {'path': path})
else:
perms = await sor.R('permission', {'path', path})
perms = await sor.R('permission', {'path': path})
if role in ['anonymous', 'logined']:
for p in perms:
await add_roleperm(sor, role, p.id)