Only BDS staff has access to GestioBDS
This commit is contained in:
parent
5983a55950
commit
3b98f35773
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue