From 2e15c227f36da4e75aa5c8e82d18764ad5ce5655 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 26 Aug 2024 17:57:21 -0700 Subject: [PATCH] Fixes adding books from list page view --- bookwyrm/templates/lists/add_item_modal.html | 6 +++--- bookwyrm/templates/lists/list.html | 5 ++--- bookwyrm/templates/lists/suggestion_search.html | 2 +- bookwyrm/views/list/list.py | 1 + bookwyrm/views/suggestion_list.py | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/bookwyrm/templates/lists/add_item_modal.html b/bookwyrm/templates/lists/add_item_modal.html index 254d17b99..322b69f99 100644 --- a/bookwyrm/templates/lists/add_item_modal.html +++ b/bookwyrm/templates/lists/add_item_modal.html @@ -4,7 +4,7 @@ {% load group_tags %} {% block modal-title %} -{% if list.curation == 'open' or request.user == list.user or list.group|is_member:request.user %} +{% if list.suggests_for or list.curation == 'open' or request.user == list.user or list.group|is_member:request.user %} {% blocktrans trimmed with title=book|book_title %} Add "{{ title }}" to this list {% endblocktrans %} @@ -19,7 +19,7 @@