From 0a8078bd156c0f0e1b8ded2cf7b3a74693b525b1 Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Thu, 30 Jun 2016 10:18:58 -0300 Subject: [PATCH] Faz as tabelas auxiliares poderem ser acessadas somente pelo operador geral --- sapl/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sapl/utils.py b/sapl/utils.py index f4a2f668e..ac9e4cab1 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -296,7 +296,8 @@ def permissoes_painel(): def permissao_tb_aux(self): - if self.request.user.is_superuser: + u = self.request.user + if u.groups.filter(name='Operador Geral').exists(): return True else: return False