Safer logged out search

This commit is contained in:
Mouse Reeve 2021-04-30 20:09:43 -07:00
parent 9caad56ffc
commit 5f7191a976

View file

@ -19,7 +19,9 @@
<div class="select">
<select name="type">
<option value="book" {% if type == "book" %}selected{% endif %}>{% trans "Books" %}</option>
{% if request.user.is_authenticated %}
<option value="user" {% if type == "user" %}selected{% endif %}>{% trans "Users" %}</option>
{% endif %}
<option value="list" {% if type == "list" %}selected{% endif %}>{% trans "Lists" %}</option>
</select>
</div>