Browse Source

Fix #1599

Signed-off-by: Eliseu Egewarth <eliseuegewarth@gmail.com>
pull/1607/head
Eliseu Egewarth 7 years ago
parent
commit
e51585135d
  1. 3
      sapl/templates/base.html
  2. 3
      sapl/templates/navbar.yaml

3
sapl/templates/base.html

@ -69,9 +69,6 @@
Votar Matéria
</a></li>
{% endif %}
{% if request.user.is_superuser %}
<li><a href="/admin">Administração</a></li>
{% endif %}
<li><a href="{% url 'sapl.base:logout' %}">Sair</a></li>
</ul>
</li>

3
sapl/templates/navbar.yaml

@ -65,6 +65,9 @@
- title: {% trans 'Tabelas Auxiliares' %}
url: '/sistema'
check_permission: base.view_tabelas_auxiliares
- title: {% trans 'Administração de Usuários' %}
url: '/admin'
check_permission: user.is_superuser
{% comment %}
<li class="nav__sub-item"><a class="nav__sub-link" href="#">Provedor LexML</a></li>

Loading…
Cancel
Save