This commit is contained in:
yumoqing 2026-03-20 17:22:54 +08:00
parent ceffe2d0ec
commit 861a10e18b

View File

@ -14,9 +14,10 @@ class UserPermisions:
async def load_roleperms(self, sor): async def load_roleperms(self, sor):
self.rp_caches = {} self.rp_caches = {}
sql_all = """select a.orgtypeid, a.name, b.path sql_all = """select c.orgtypeid, c.name, b.path
from rolepermission a, permission b from rolepermission a, permission b, role c
where a.permid = b.id where a.permid = b.id
and c.id = a.roleid
order by a.orgtypeid, a.name""" order by a.orgtypeid, a.name"""
recs = await sor.sqlExe(sql_all, {}) recs = await sor.sqlExe(sql_all, {})
for r in recs: for r in recs: