bugfix
This commit is contained in:
parent
ec32a70e67
commit
8ed0cb9c49
@ -44,6 +44,8 @@ where a.id = c.userid
|
||||
def check_roles_path(self, roles, path):
|
||||
for role in roles:
|
||||
paths = self.rp_caches.get(role)
|
||||
if not paths:
|
||||
return False
|
||||
return path in paths
|
||||
|
||||
async def is_user_has_path_perm(self, userid, path):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user