diff options
Diffstat (limited to 'gn_auth/auth/authorisation/resources/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/views.py | 3 |
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.") |