Browse Source

Fix permissão para deletar proposição

pull/534/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
2c59c34d48
  1. 2
      sapl/materia/views.py

2
sapl/materia/views.py

@ -490,7 +490,7 @@ class ProposicaoCrud(Crud):
return lista
class DeleteView(PermissionRequiredMixin, CrudDeleteView):
permission_required = permissoes_materia()
permission_required = {'materia.delete_proposicao'}
def delete(self, request, *args, **kwargs):
proposicao = Proposicao.objects.get(id=self.kwargs['pk'])

Loading…
Cancel
Save