This commit is contained in:
yumoqing 2026-03-20 18:30:31 +08:00
parent ec32a70e67
commit 8ed0cb9c49

View File

@ -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):