about summary refs log tree commit diff
path: root/gn_auth/auth/authorisation/resources/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r--gn_auth/auth/authorisation/resources/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py
index 60c751c..c5da257 100644
--- a/gn_auth/auth/authorisation/resources/views.py
+++ b/gn_auth/auth/authorisation/resources/views.py
@@ -341,14 +341,14 @@ def resources_authorisation():
             res.resource_id for res in with_db_connection(public_resources)
             if res.resource_id in resource_ids)
         with require_oauth.acquire("profile resource") as the_token:
-            resources = with_db_connection(lambda conn: user_roles_on_resources(
+            the_resources = with_db_connection(lambda conn: user_roles_on_resources(
                 conn, the_token.user, resource_ids))
             resp = jsonify({
                 str(resid): {
                     "public-read": resid in pubres,
                     "roles": tuple(
                         dictify(rol) for rol in
-                        resources.get(resid, {}).get("roles", tuple()))
+                        the_resources.get(resid, {}).get("roles", tuple()))
                 } for resid in resource_ids
             })
     except _HTTPException as _httpe: