1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #4593: Fix AttributeError exception when viewing object lists as a non-authenticated user

This commit is contained in:
Jeremy Stretch
2020-05-06 23:44:06 -04:00
parent 3711283de5
commit 5c1adf9e37
5 changed files with 31 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
{% block content %}
<div class="pull-right noprint">
{% block buttons %}{% endblock %}
{% if table_config_form %}
{% if request.user.is_authenticated and table_config_form %}
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#tableconfig" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
{% endif %}
{% if permissions.add and 'add' in action_buttons %}