bugfix
This commit is contained in:
parent
d07ba9fbdb
commit
f3caac310d
@ -8,6 +8,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
|
||||
d.append(f'{r.orgtypeid}.{r.name}')
|
||||
d.append(f'{r.orgtypeid}.*')
|
||||
d.append(f'*.{r.name}')
|
||||
debug(f'roles={d}')
|
||||
d = sorted(list(set(d)))
|
||||
return d
|
||||
return []
|
||||
|
||||
@ -10,6 +10,7 @@ async with get_sor_context(request._run_ns, 'rbac') as sor:
|
||||
continue
|
||||
else:
|
||||
d.append(f'{r.orgtypeid}.{r.name}')
|
||||
debug(f'roles={d}')
|
||||
d = sorted(list(set(d)))
|
||||
return d
|
||||
return []
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user