Only BDS staff has access to GestioBDS

This commit is contained in:
Martin Pépin 2020-05-08 19:06:51 +02:00
parent 5983a55950
commit 3b98f35773

View file

@ -1,3 +1,10 @@
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.views.generic import TemplateView
home = TemplateView.as_view(template_name="bds/home.html")
class HomeView(PermissionRequiredMixin, TemplateView):
permission_required = "bds:is_team"
template_name = "bds/home.html"
home = HomeView.as_view()