bugfix
This commit is contained in:
parent
3d38d97676
commit
b7c71bda18
@ -1104,10 +1104,11 @@ async def add_roleperm(sor, roleid, permid):
|
||||
|
||||
async def add_roles_perm(perm, roles):
|
||||
perms = [perm]
|
||||
for role in roles:
|
||||
if role in ['anonymous', 'any', 'logined']:
|
||||
for p in perms:
|
||||
await add_roleperm(sor, role, p.id)
|
||||
return
|
||||
continue
|
||||
orgtypeid, name = role.split('.')
|
||||
ns = {
|
||||
'orgtypeid': orgtypeid,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user