aboutsummaryrefslogtreecommitdiff
path: root/gn_auth/auth/authorisation/resources/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-17 16:00:21 -0500
committerFrederick Muriuki Muriithi2024-06-17 16:00:21 -0500
commit4c82e3f6086eb03099dad6599c5a3b356c909cfd (patch)
tree40657c681186c5643a5a73fc9a2a61b91217bd1a /gn_auth/auth/authorisation/resources/views.py
parent96bfa61529f543899a4599c824a3b27676e5118b (diff)
downloadgn-auth-4c82e3f6086eb03099dad6599c5a3b356c909cfd.tar.gz
Fix linting errors
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r--gn_auth/auth/authorisation/resources/views.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/views.py b/gn_auth/auth/authorisation/resources/views.py
index 07439a0..0e07ffa 100644
--- a/gn_auth/auth/authorisation/resources/views.py
+++ b/gn_auth/auth/authorisation/resources/views.py
@@ -617,8 +617,7 @@ def create_resource_role(resource_id: UUID):
def user_resource_roles(resource_id: UUID, user_id: UUID):
"""Get a specific user's roles on a particular resource."""
with (require_oauth.acquire("profile group resource") as _token,
- db.connection(app.config["AUTH_DB"]) as conn,
- db.cursor(conn) as cursor):
+ db.connection(app.config["AUTH_DB"]) as conn):
if _token.user.user_id != user_id:
raise AuthorisationError(
"You are not authorised to view the roles this user has.")