This commit is contained in:
yumoqing 2026-03-21 11:43:22 +08:00
parent ea16538858
commit c10d27879b

View File

@ -1102,7 +1102,7 @@ async def add_roleperm(sor, roleid, permid):
print(f'{roleid}, {permid} perm add')
return
async def add_roles_perm(perm, roles):
async def add_roles_perm(sor, perm, roles):
perms = [perm]
for role in roles:
if role in ['anonymous', 'any', 'logined']:
@ -1146,7 +1146,7 @@ async def main():
ns['id'] = id
await sor.C('permission', ns.copy())
perm = DictObject(**ns)
await add_roles_perm(perm, roles)
await add_roles_perm(sor, perm, roles)
print(f'{cnt} path inserted')
if __name__ == '__main__':