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: