Disable Add List button for non-staff

This commit is contained in:
Scot Hacker 2018-04-07 10:26:21 -07:00
parent d9414f6de8
commit 4e8960c12f

View file

@ -21,7 +21,13 @@
{% endfor %}
<div class="mt-3">
<a href="{% url 'todo:add_list' %}" class="btn btn-primary">Create new todo list</a>
{% if user.is_staff %}
<a href="{% url 'todo:add_list' %}" class="btn btn-primary">Create new todo list</a>
{% else %}
<a href="" class="btn btn-primary disabled">If you were staff, you could create a new list</a>
{% endif %}
</div>
{% endblock %}