about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-29 11:25:06 -0500
committerFrederick Muriuki Muriithi2025-07-29 11:25:06 -0500
commit341f19d2079732f0dc37e507f5dc2ad9dce35c4e (patch)
tree2e21e118aca24d23b78b4ab913281eaeaca2978f
parente7964b6b1ebdc258bb697e2db4f3215df7a4c3b8 (diff)
downloadgn-auth-341f19d2079732f0dc37e507f5dc2ad9dce35c4e.tar.gz
Bugfix: Fix typo - we don't pass objects, just their IDs.
-rw-r--r--gn_auth/auth/authorisation/resources/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/resources/checks.py b/gn_auth/auth/authorisation/resources/checks.py
index eb8afbd..ce2b821 100644
--- a/gn_auth/auth/authorisation/resources/checks.py
+++ b/gn_auth/auth/authorisation/resources/checks.py
@@ -117,6 +117,6 @@ def authorised_for_spec(
             "AND user_roles.user_id=?")
         cursor.execute(
             _query,
-            (str(resource.resource_id), str(user.user_id)))
+            (str(resource_id), str(user_id)))
         _privileges = tuple(row["privilege_id"] for row in cursor.fetchall())
     return check(auth_spec, _privileges)