bugfix
This commit is contained in:
parent
f2652e1c2c
commit
752686b3a9
@ -33,10 +33,10 @@ class UserPermisions:
|
|||||||
if cup:
|
if cup:
|
||||||
await self.load_user_cup(userid)
|
await self.load_user_cup(userid)
|
||||||
|
|
||||||
async get_cached_user_cup(self, userid):
|
async def get_cached_user_cup(self, userid):
|
||||||
return self.cups.get(userid)
|
return self.cups.get(userid)
|
||||||
|
|
||||||
async load_user_cup(userid):
|
async def load_user_cup(userid):
|
||||||
sql = """select a.id,b.path from users a, userrole c, rolepermission d, permission b
|
sql = """select a.id,b.path from users a, userrole c, rolepermission d, permission b
|
||||||
where a.id = c.userid
|
where a.id = c.userid
|
||||||
and c.roleid = d.roleid
|
and c.roleid = d.roleid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user