diff options
author | Frederick Muriuki Muriithi | 2023-11-13 14:58:41 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2023-11-13 14:58:41 +0300 |
commit | f608ee7b28e477497728ec5674a86a0a4350b6b5 (patch) | |
tree | 017219a13fd859ca829776908f02332efb979a7b /gn_auth/auth/authorisation | |
parent | 7d05bb6dac6a57cdeabb31800e248394c12f6cee (diff) | |
download | gn-auth-f608ee7b28e477497728ec5674a86a0a4350b6b5.tar.gz |
Bug: Fix typo in query
Diffstat (limited to 'gn_auth/auth/authorisation')
-rw-r--r-- | gn_auth/auth/authorisation/roles/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/roles/models.py b/gn_auth/auth/authorisation/roles/models.py index f6d6c41..a3a9d5b 100644 --- a/gn_auth/auth/authorisation/roles/models.py +++ b/gn_auth/auth/authorisation/roles/models.py @@ -156,7 +156,7 @@ def __assign_public_view_role__(cursor: db.DbCursor, user: User): cursor.execute("SELECT role_id FROM roles WHERE role_name='public-view'") role_id = cursor.fetchone()["role_id"] cursor.executemany( - "INSERT INTO user_roles(user_id, role_id, resource_id " + "INSERT INTO user_roles(user_id, role_id, resource_id) " "VALUES(:user_id, :role_id, :resource_id)", tuple({ "user_id": str(user.user_id), |