stages/consent: fix formatting

This commit is contained in:
Jens Langhammer 2020-09-26 21:06:01 +02:00
parent ea1564548c
commit b24938fc6b
1 changed files with 1 additions and 3 deletions

View File

@ -49,9 +49,7 @@ class ConsentStageView(FormView, StageView):
if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context:
user = self.executor.plan.context[PLAN_CONTEXT_PENDING_USER]
if UserConsent.filter_not_expired(
user=user, application=application
).exists():
if UserConsent.filter_not_expired(user=user, application=application).exists():
return self.executor.stage_ok()
# No consent found, show form