limit the all_computers view to superusers

This commit is contained in:
Andreas Zweili 2020-02-16 21:37:33 +01:00
parent e1afbe7f51
commit c7eb173e32

View File

@ -9,7 +9,9 @@
<body>
<div class="ui container">
<a href="{% url 'customers' %}">Home</a> |
{% if request.user.is_superuser %}
<a href="{% url 'all_computers' %}">All Computers</a> |
{% endif %}
{% if user.is_authenticated %}
<a href="{% url 'logout' %}">Logout</a> |
{% else %}