mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix crash on password change page when not logged in
This commit is contained in:
@@ -449,7 +449,7 @@ class ChangePasswordView(CustomerRequiredMixin, FormView):
|
|||||||
def dispatch(self, request, *args, **kwargs):
|
def dispatch(self, request, *args, **kwargs):
|
||||||
if not request.organizer.settings.customer_accounts:
|
if not request.organizer.settings.customer_accounts:
|
||||||
raise Http404('Feature not enabled')
|
raise Http404('Feature not enabled')
|
||||||
if self.request.customer.provider_id:
|
if self.request.customer and self.request.customer.provider_id:
|
||||||
raise Http404('Feature not enabled')
|
raise Http404('Feature not enabled')
|
||||||
return super().dispatch(request, *args, **kwargs)
|
return super().dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user