From 2c59c34d48541a8b8f807f3e58d919a58618db40 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Thu, 25 Aug 2016 13:48:17 -0300 Subject: [PATCH] =?UTF-8?q?Fix=20permiss=C3=A3o=20para=20deletar=20proposi?= =?UTF-8?q?=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/materia/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/materia/views.py b/sapl/materia/views.py index 0800a56c2..f5aefc62c 100644 --- a/sapl/materia/views.py +++ b/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'])