mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-22 23:46:42 +02:00
limit the all_computers view to superusers
This commit is contained in:
parent
e1afbe7f51
commit
c7eb173e32
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue
Block a user