From 975de1a230656cc518b30d1ad2e886928a699c3a Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 19 Oct 2024 17:45:26 +0200 Subject: [PATCH] fix: make sure anonymous users can look at ans --- src/fellchensammlung/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 3c6d1a8..38d3c5a 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -80,6 +80,8 @@ def adoption_notice_detail(request, adoption_notice_id): is_subscribed = True except Subscriptions.DoesNotExist: is_subscribed = False + else: + is_subscribed = False has_edit_permission = user_is_owner_or_trust_level(request.user, adoption_notice) if request.method == 'POST': action = request.POST.get("action")