Require login for index view

This commit is contained in:
Jan Dittberner 2023-04-14 19:33:44 +02:00
parent a5b65974fb
commit dd67ee91da
3 changed files with 23 additions and 3 deletions

View file

@ -3,13 +3,14 @@ This module defines the views for the gnuviechadmin customer dashboard.
"""
from django.contrib.auth import get_user_model
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import DetailView, TemplateView
from gvacommon.viewmixins import StaffOrSelfLoginRequiredMixin
from hostingpackages.models import CustomerHostingPackage
class IndexView(TemplateView):
class IndexView(LoginRequiredMixin, TemplateView):
"""
This is the dashboard view.