Browse Source

Adiciona permissão à tela de solicitação

pull/6/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Luciano Almeida
parent
commit
a486a45205
  1. 4
      sigi/apps/solicitacoes/views.py
  2. 1
      sigi/apps/usuarios/views.py

4
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(

1
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

Loading…
Cancel
Save