Browse Source

Conserta bug em permissoes de documento admnistrativo

pull/663/head
Eduardo Calil 8 years ago
parent
commit
f645f70546
  1. 9
      sapl/base/templatetags/common_tags.py

9
sapl/base/templatetags/common_tags.py

@ -90,9 +90,12 @@ def get_delete_perm(value, arg):
@register.filter
def get_doc_adm_template_perms(user):
app_config = AppConfig.objects.last()
if app_config.documentos_administrativos == 'O':
return True
elif user.has_perms(permissoes_adm()):
if app_config:
if app_config.documentos_administrativos == 'O':
return True
if user.has_perms(permissoes_adm()):
return True
else:

Loading…
Cancel
Save