bugfix
This commit is contained in:
parent
2e308c3da2
commit
e8f966bdbf
2706
load_path.py
2706
load_path.py
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user