From c901d767055057422289618c2b0ce111d2a08eb2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 26 Aug 2024 18:16:31 -0700 Subject: [PATCH] Allow users to remove books from suggestion lists --- bookwyrm/templates/lists/list.html | 4 ++-- bookwyrm/urls.py | 5 +++++ bookwyrm/views/__init__.py | 2 +- bookwyrm/views/list/list.py | 1 + bookwyrm/views/suggestion_list.py | 18 ++++++++++++++++-- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 08a010910..e6fbf12e7 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -113,11 +113,11 @@ {% endif %} - {% if list.user == request.user or list.curation == 'open' and item.user == request.user or list.group|is_member:request.user %} + {% if item.user == request.user or list.curation == 'open' and item.user == request.user or list.group|is_member:request.user %}