From 341f19d2079732f0dc37e507f5dc2ad9dce35c4e Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 29 Jul 2025 11:25:06 -0500 Subject: Bugfix: Fix typo - we don't pass objects, just their IDs. --- gn_auth/auth/authorisation/resources/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit 1.4.1