diff --git a/core/views/user.py b/core/views/user.py index 019cda0a..5cbc2d88 100644 --- a/core/views/user.py +++ b/core/views/user.py @@ -770,6 +770,11 @@ class UserToolsView(QuickNotifMixin, UserTabsMixin, TemplateView): template_name = "core/user_tools.jinja" current_tab = "tools" + def dispatch(self, request, *args, **kwargs): + if request.user.is_anonymous: + raise PermissionDenied + return super(UserToolsView, self).dispatch(request, *args, **kwargs) + def get_context_data(self, **kwargs): self.object = self.request.user from launderette.models import Launderette