Commit 18d1ac5d authored by Robert's avatar Robert

Fix sentry issue 150

parent 1ca4b3b4
......@@ -150,7 +150,10 @@ class UpdateImages(PermissionMixin, UpdateView):
return super().get_context_data(**kwargs)
def get_object(self):
return self.request.user.gestalt
if self.request.user.is_authenticated:
return self.request.user.gestalt
return None
class UpdatePassword(PermissionMixin, allauth_views.PasswordChangeView):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment