fix: make sure anonymous users can look at ans
This commit is contained in:
parent
fd3478600f
commit
975de1a230
@ -80,6 +80,8 @@ def adoption_notice_detail(request, adoption_notice_id):
|
|||||||
is_subscribed = True
|
is_subscribed = True
|
||||||
except Subscriptions.DoesNotExist:
|
except Subscriptions.DoesNotExist:
|
||||||
is_subscribed = False
|
is_subscribed = False
|
||||||
|
else:
|
||||||
|
is_subscribed = False
|
||||||
has_edit_permission = user_is_owner_or_trust_level(request.user, adoption_notice)
|
has_edit_permission = user_is_owner_or_trust_level(request.user, adoption_notice)
|
||||||
if request.method == 'POST':
|
if request.method == 'POST':
|
||||||
action = request.POST.get("action")
|
action = request.POST.get("action")
|
||||||
|
Loading…
Reference in New Issue
Block a user