From 3b5ef09c3c3104bd505efd95770af7cb2d035589 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 28 Jul 2025 16:27:28 +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 53de9b7..619893c 100644 --- a/rbac/check_perm.py +++ b/rbac/check_perm.py @@ -57,7 +57,7 @@ async def create_user(sor, ns, roles=[]): } ] for rt in roles: - sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)" + sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$" recs = await sor.sqlExe(sql, { 'otid': rt['orgtypeid'], 'roles': rt['roles']