From c9712facf34684fe7e83b0266caafedef15a0088 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 22 Nov 2020 19:42:47 +0100 Subject: [PATCH] core: fix ShellView not being login only --- passbook/core/templates/shell.html | 2 +- passbook/core/views/shell.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/passbook/core/templates/shell.html b/passbook/core/templates/shell.html index adabb7263..97d98c589 100644 --- a/passbook/core/templates/shell.html +++ b/passbook/core/templates/shell.html @@ -15,6 +15,6 @@ {% block page_content %} - + {% endblock %} diff --git a/passbook/core/views/shell.py b/passbook/core/views/shell.py index d401f3c66..9aa280e08 100644 --- a/passbook/core/views/shell.py +++ b/passbook/core/views/shell.py @@ -1,8 +1,9 @@ """core shell view""" +from django.contrib.auth.mixins import LoginRequiredMixin from django.views.generic.base import TemplateView -class ShellView(TemplateView): +class ShellView(LoginRequiredMixin, TemplateView): """core shell view""" template_name = "shell.html"