From 4c82e3f6086eb03099dad6599c5a3b356c909cfd Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 17 Jun 2024 16:00:21 -0500 Subject: Fix linting errors --- gn_auth/auth/authorisation/resources/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gn_auth/auth/authorisation/resources/views.py') 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.") -- cgit v1.2.3