bugfix
This commit is contained in:
parent
21355c6f44
commit
c6ef121c6a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user