From 362fe4db6baa2f91e07608ae8c3c237ef5c94c33 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 9 Jul 2025 21:03:34 +0800 Subject: [PATCH] bugfix --- 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 3324a06..1978369 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -88,7 +88,7 @@ async def create_user(sor, ns, roles=[]): for rt in roles: sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)" recs = await sor.sqlExe(sql, { - 'otid': rt['orgtypeid', + 'otid': rt['orgtypeid'], 'roles': rt['roles'] }) for r in recs: