This commit is contained in:
yumoqing 2026-03-21 11:38:53 +08:00
parent df9b71e647
commit 3d38d97676

View File

@ -1103,7 +1103,7 @@ async def add_roleperm(sor, roleid, permid):
return
async def add_roles_perm(perm, roles):
perms = [perms]
perms = [perm]
if role in ['anonymous', 'any', 'logined']:
for p in perms:
await add_roleperm(sor, role, p.id)