core: fix ShellView not being login only

This commit is contained in:
Jens Langhammer 2020-11-22 19:42:47 +01:00
parent 07773ed934
commit c9712facf3
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,6 @@
{% block page_content %}
<pb-sidebar class="pf-c-page__sidebar" brandLogo="{{ config.passbook.branding.logo }}" {% if config.passbook.branding.title_show %} brandTitle="{{ config.passbook.branding.title }}" {% endif %}>
</pb-sidebar>
<pb-router-outlet role="main" class="pf-c-page__main" tabindex="-1" id="main-content" defaultUrl="-/overview/">
<pb-router-outlet role="main" class="pf-c-page__main" tabindex="-1" id="main-content" defaultUrl="/-/overview/">
</pb-router-outlet>
{% endblock %}

View File

@ -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"