diff --git a/sigi/apps/solicitacoes/views.py b/sigi/apps/solicitacoes/views.py index 6dae6d0..2ba8c73 100644 --- a/sigi/apps/solicitacoes/views.py +++ b/sigi/apps/solicitacoes/views.py @@ -20,7 +20,9 @@ class SolicitacaoCrud(LoginRequiredMixin, Crud): model = Solicitacao help_path = u'' - class ListView(CrudListView): + class ListView(GroupRequiredMixin, CrudListView): + template_name = u'solicitacoes/solicitacoes_list.html' + group_required = u'Usuario_Habilitado' def get_rows(self, object_list): object_list = Solicitacao.objects.filter( diff --git a/sigi/apps/usuarios/views.py b/sigi/apps/usuarios/views.py index 8992bf3..ad8a95f 100644 --- a/sigi/apps/usuarios/views.py +++ b/sigi/apps/usuarios/views.py @@ -1,6 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import absolute_import +from braces.views import GroupRequiredMixin from braces.views import FormValidMessageMixin, GroupRequiredMixin from django.conf import settings