diff --git a/sapl/utils.py b/sapl/utils.py index 1e49e3184..1df0bf4af 100644 --- a/sapl/utils.py +++ b/sapl/utils.py @@ -298,7 +298,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