This commit is contained in:
yumoqing 2025-01-23 11:42:19 +08:00
parent 21355c6f44
commit c6ef121c6a

View File

@ -43,7 +43,7 @@ def get_apikey_from_token(token):
return None
async def get_user_roles(userid):
sql = "select b.name from userrole a, role b where a.userid=${userid}$ and a.roleid = b.id"
sql = "select concat(b.orgtypeid, '.' b.name) as name from userrole a, role b where a.userid=${userid}$ and a.roleid = b.id"
db = DBPools()
roles = []
dbname = await get_dbname()