mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-06-30 05:01:05 +02:00
limit the all_computers view to superusers
This commit is contained in:
parent
e1afbe7f51
commit
c7eb173e32
|
@ -9,7 +9,9 @@
|
||||||
<body>
|
<body>
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<a href="{% url 'customers' %}">Home</a> |
|
<a href="{% url 'customers' %}">Home</a> |
|
||||||
|
{% if request.user.is_superuser %}
|
||||||
<a href="{% url 'all_computers' %}">All Computers</a> |
|
<a href="{% url 'all_computers' %}">All Computers</a> |
|
||||||
|
{% endif %}
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<a href="{% url 'logout' %}">Logout</a> |
|
<a href="{% url 'logout' %}">Logout</a> |
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user