bugfix
This commit is contained in:
parent
1954aa6fa8
commit
ec32a70e67
@ -36,9 +36,9 @@ where a.id = c.userid
|
|||||||
and a.id = ${userid}$''', {'userid': userid})
|
and a.id = ${userid}$''', {'userid': userid})
|
||||||
roles = ['*.*'] # 登录用户
|
roles = ['*.*'] # 登录用户
|
||||||
for r in recs:
|
for r in recs:
|
||||||
append(f'{r.orgtypeid}.{r.name}')
|
roles.append(f'{r.orgtypeid}.{r.name}')
|
||||||
append(f'{r.orgtypeid}.*')
|
roles.append(f'{r.orgtypeid}.*')
|
||||||
append(f'*.{r.name}')
|
roles.append(f'*.{r.name}')
|
||||||
self.ur_caches[userid] = sorted(list(set(roles)))
|
self.ur_caches[userid] = sorted(list(set(roles)))
|
||||||
|
|
||||||
def check_roles_path(self, roles, path):
|
def check_roles_path(self, roles, path):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user