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