From 7d7429f89654b84660a7eb83a1b284c2e5fab0be Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 18 Oct 2017 14:57:11 -0200 Subject: [PATCH] =?UTF-8?q?Remove=20refer=C3=AAncia=20a=20painel-aberto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 7db713905..93cd3402c 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -708,14 +708,6 @@ class PainelView(PermissionRequiredForAppCrudMixin, TemplateView): template_name = 'sessao/painel.html' app_label = 'painel' - def has_permission(self): - painel_aberto = AppsAppConfig.attr('painel_aberto') - - if painel_aberto and self.request.user.is_anonymous(): - return True - - return PermissionRequiredForAppCrudMixin.has_permission(self) - def get(self, request, *args, **kwargs): if request.user.is_anonymous(): self.template_name = 'painel/index.html'