diff --git a/itou/www/apply/views/submit_views.py b/itou/www/apply/views/submit_views.py index 393f6e8ba6..6ff1f98b99 100644 --- a/itou/www/apply/views/submit_views.py +++ b/itou/www/apply/views/submit_views.py @@ -227,7 +227,7 @@ def setup(self, request, *args, **kwargs): self.sender = request.user def dispatch(self, request, *args, **kwargs): - if self.sender.is_authenticated and self.sender.kind not in [UserKind.PRESCRIBER, UserKind.EMPLOYER]: + if self.sender.kind not in [UserKind.PRESCRIBER, UserKind.EMPLOYER]: logger.info(f"dispatch ({request.path}) : {self.sender.kind} in sender tunnel") return HttpResponseRedirect(reverse("apply:start", kwargs={"company_pk": self.company.pk})) return super().dispatch(request, *args, **kwargs) diff --git a/itou/www/job_seekers_views/views.py b/itou/www/job_seekers_views/views.py index c5f3f9a862..3a8102132e 100644 --- a/itou/www/job_seekers_views/views.py +++ b/itou/www/job_seekers_views/views.py @@ -268,7 +268,7 @@ def setup(self, request, *args, **kwargs): self.sender = request.user def dispatch(self, request, *args, **kwargs): - if self.sender.is_authenticated and self.sender.kind not in [UserKind.PRESCRIBER, UserKind.EMPLOYER]: + if self.sender.kind not in [UserKind.PRESCRIBER, UserKind.EMPLOYER]: logger.info(f"dispatch ({request.path}) : {self.sender.kind} in sender tunnel") return HttpResponseRedirect(reverse("apply:start", kwargs={"company_pk": self.company.pk})) return super().dispatch(request, *args, **kwargs)