forked from CGM_Public/pretix_original
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):
|
||||
if not request.organizer.settings.customer_accounts:
|
||||
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')
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user