From 8142e3df45463bfa98a167aee343bb15cc4b78df Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 2 Jan 2020 20:19:53 +0100 Subject: [PATCH] providers/oidc: fix application property of wrong object being used --- passbook/providers/oidc/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/passbook/providers/oidc/lib.py b/passbook/providers/oidc/lib.py index 7a6d2a4a2..73bb953d4 100644 --- a/passbook/providers/oidc/lib.py +++ b/passbook/providers/oidc/lib.py @@ -31,7 +31,7 @@ def check_permissions( for _, related in collector.data.items(): related_object = next(iter(related)) if isinstance(related_object, Provider): - application = related.application + application = related_object.application break except Application.DoesNotExist: return redirect("passbook_providers_oauth:oauth2-permission-denied")