From bae7518db8c32fd945f58343c8a11d8b6d0957ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Thu, 6 Oct 2022 16:15:42 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20bug=20verifica=C3=A7=C3=A3o=20de=20pe?= =?UTF-8?q?rmiss=C3=B5e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/ocorrencias/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigi/apps/ocorrencias/views.py b/sigi/apps/ocorrencias/views.py index e653586..b8533f3 100644 --- a/sigi/apps/ocorrencias/views.py +++ b/sigi/apps/ocorrencias/views.py @@ -185,10 +185,10 @@ class PainelOcorrenciaView(LoginRequiredMixin, UserPassesTestMixin, ListView): context["panel_subtitles"] = self.get_subtitles(filter) context["filter"] = filter context["has_add_permission"] = self.request.user.has_perm( - "add_ocorrencia" + "ocorrencias.add_ocorrencia" ) context["has_change_permission"] = self.request.user.has_perm( - "change_ocorrencia" + "ocorrencias.change_ocorrencia" ) return context