This commit is contained in:
yumoqing 2026-03-21 11:33:51 +08:00
parent 2e308c3da2
commit e8f966bdbf
2 changed files with 1133 additions and 1604 deletions

File diff suppressed because it is too large Load Diff

View File

@ -47,13 +47,10 @@ async def main():
}) ] }) ]
await sor.C('permission', perms[0].copy()) await sor.C('permission', perms[0].copy())
if role in ['anonymous', 'logined']: if role in ['anonymous', 'any', 'logined']:
for p in perms: for p in perms:
await add_roleperm(sor, role, p.id) await add_roleperm(sor, role, p.id)
return return
if role in ['anonymous', 'any', 'logined']:
await add_roleperm(sor, role, p.id)
else:
orgtypeid, name = role.split('.') orgtypeid, name = role.split('.')
ns = { ns = {
'orgtypeid': orgtypeid, 'orgtypeid': orgtypeid,