From b015d6c9a122659a0adfa1511c32aacd9be53c08 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 4 Feb 2021 11:46:42 -0800 Subject: [PATCH] Fixes hiding import book option in search for anonymous users --- bookwyrm/templates/search_results.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/search_results.html b/bookwyrm/templates/search_results.html index be1da831..34328bbd 100644 --- a/bookwyrm/templates/search_results.html +++ b/bookwyrm/templates/search_results.html @@ -22,7 +22,8 @@ {% endif %} - {% if book_results|slice:":1" and local_results.results and request.user.is_authenticated %} + {% if request.user.is_authenticated %} + {% if book_results|slice:":1" and local_results.results %}

Didn't find what you were looking for? @@ -61,6 +62,7 @@ {% include 'snippets/toggle/close_button.html' with text="Hide results from other catalogues" small=True controls_text="more-results" %} {% endif %}

+ {% endif %}