stages/consent: fix formatting
This commit is contained in:
parent
ea1564548c
commit
b24938fc6b
|
@ -49,9 +49,7 @@ class ConsentStageView(FormView, StageView):
|
||||||
if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context:
|
if PLAN_CONTEXT_PENDING_USER in self.executor.plan.context:
|
||||||
user = self.executor.plan.context[PLAN_CONTEXT_PENDING_USER]
|
user = self.executor.plan.context[PLAN_CONTEXT_PENDING_USER]
|
||||||
|
|
||||||
if UserConsent.filter_not_expired(
|
if UserConsent.filter_not_expired(user=user, application=application).exists():
|
||||||
user=user, application=application
|
|
||||||
).exists():
|
|
||||||
return self.executor.stage_ok()
|
return self.executor.stage_ok()
|
||||||
|
|
||||||
# No consent found, show form
|
# No consent found, show form
|
||||||
|
|
Reference in New Issue