diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-30 20:36:49 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-30 20:36:49 +0200 |
commit | e8cf20110599c16df4f8a33ee36c3fe282cefa3a (patch) | |
tree | 8d0ca9e022e80c74dcaf4f656e56f01a20d12ec9 /accounts | |
parent | block debug actions and confirm for approve doc (diff) | |
download | scout-subs-e8cf20110599c16df4f8a33ee36c3fe282cefa3a.tar.gz scout-subs-e8cf20110599c16df4f8a33ee36c3fe282cefa3a.zip |
perm staff for non primary group
Diffstat (limited to '')
-rw-r--r-- | accounts/templates/accounts/index.html | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/accounts/templates/accounts/index.html b/accounts/templates/accounts/index.html index e0674a7..7f1f449 100644 --- a/accounts/templates/accounts/index.html +++ b/accounts/templates/accounts/index.html @@ -8,7 +8,7 @@ <a style="margin-left: 10px;" href="{% url 'index' %}" class="breadcrumb">Home</a> <a href="#!" class="breadcrumb hide-on-med-and-down">Account</a> <ul class="right"> - {% if user.is_staff %} + {% if user.is_staff or perms.client.staff %} <li><a href="{% url 'server' %}">Pannello Admin</a></li> {% endif %} <li><a href="{% url 'personal' %}">{{ user.username }}</a></li> @@ -23,23 +23,6 @@ </ul> </div> </nav> - - <ul class="sidenav" id="mobile-demo"> - {% if user.is_staff %} - <li><a href="{% url 'server' %}">Pannello Admin</a></li> - {% endif %} - {% if user.is_authenticated %} - <li><a href="{% url 'personal' %}">{{ user.username }}</a></li> - {% endif %} - {% if user.username != "" %} - <li> - <a href="{% url 'logout' %}"><i class="material-icons">exit_to_app</i></a> - </li> - {% else %} - <li><a href="{% url 'signup' %}">Registrazione</a></li> - <li><a href="{% url 'login' %}">Login</a></li> - {% endif %} - </ul> {% endblock%} {% block content %} |