Browse Source

Faz as tabelas auxiliares poderem ser acessadas somente pelo operador geral

pull/505/head
Eduardo Calil 9 years ago
committed by LeandroRoberto
parent
commit
0a8078bd15
  1. 3
      sapl/utils.py

3
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

Loading…
Cancel
Save