summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-11-03 10:03:39 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-11-17 17:36:15 +0100
commit5d265aa532cd2615c2dbcefd4e4db71a16341a0e (patch)
tree38667dd013ae746dee49e9574e3515cd4ced4667
parente1908c25437f1d5eb0b43416073c861f4dbbc230 (diff)
Show scopes section only to administrators
-rw-r--r--ogcp/templates/base.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index f11ad5f..2d9b9f8 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -27,9 +27,6 @@
<li class="nav-item {% block nav_dashboard%}{% endblock %}">
<a class="nav-link" href="{{ url_for('index') }}">{{ _('Dashboard') }}<span class="sr-only">(current)</span></a>
</li>
- <li class="nav-item {% block nav_scopes%}{% endblock %}">
- <a class="nav-link" href="{{ url_for('scopes') }}">{{ _('Scopes') }}</a>
- </li>
<li class="nav-item {% block nav_commands%}{% endblock %}">
<a class="nav-link" href="{{ url_for('commands') }}">{{ _('Commands') }}</a>
</li>
@@ -37,6 +34,9 @@
<a class="nav-link" href="{{ url_for('images') }}">{{ _('Images') }}</a>
</li>
{% if current_user.admin %}
+ <li class="nav-item {% block nav_scopes%}{% endblock %}">
+ <a class="nav-link" href="{{ url_for('scopes') }}">{{ _('Scopes') }}</a>
+ </li>
<li class="nav-item {% block nav_servers %}{% endblock %}">
<a class="nav-link" href="{{ url_for('manage_servers') }}">{{ _('Servers') }}</a>
</li>