From 76e5a0f1aa81d7645f0c1d764b962fdee257f70f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 11 Nov 2024 14:48:35 +0800 Subject: [PATCH] bugfic --- rbac/check_perm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbac/check_perm.py b/rbac/check_perm.py index 7690157..8c68afe 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -5,7 +5,7 @@ from ahserver.auth_api import AuthAPI def objcheckperm(obj, userid, path): sql = """select distinct a.*, c.userid from -(select id, path from permission where path=s${path}$ and del_flg='0') a +(select id, path from permission where path=${path}$ and del_flg='0') a right join rolepermission b on a.id = b.permid right join userrole c on b.roleid = c.roleid