From ed38ec5b5c6110984e3478a9ed907e8aa42265a8 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Fri, 27 Jan 2017 10:17:50 -0200 Subject: [PATCH] =?UTF-8?q?Fix=20permiss=C3=A3o=20mesa=20diretora?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/parlamentares/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/parlamentares/views.py b/sapl/parlamentares/views.py index 38a650e52..688f067bc 100644 --- a/sapl/parlamentares/views.py +++ b/sapl/parlamentares/views.py @@ -293,7 +293,8 @@ class MesaDiretoraView(FormView): def get_template_names(self): return ['parlamentares/composicaomesa_form.html']\ - if self.request.user.has_perm(RP_CHANGE)\ + if self.request.user.has_perm( + 'parlamentares.change_composicaomesa')\ else ['parlamentares/public_composicaomesa_form.html'] # Essa função avisa quando se pode compor uma Mesa Legislativa