providers/oidc: fix application property of wrong object being used

This commit is contained in:
Jens Langhammer 2020-01-02 20:19:53 +01:00
parent 73920899de
commit 8142e3df45
1 changed files with 1 additions and 1 deletions

View File

@ -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")