From: Radek Czajka Date: Wed, 5 Jun 2024 13:20:10 +0000 (+0200) Subject: quickfix X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/59b18d2848d2561f1547b78921936a501d0f0b37?hp=f7d8acded4a58d423035c5759f6dee9a34396959 quickfix --- diff --git a/src/bookmarks/views.py b/src/bookmarks/views.py index 7d83818c1..0ff5104de 100644 --- a/src/bookmarks/views.py +++ b/src/bookmarks/views.py @@ -12,6 +12,8 @@ import re @cache.never_cache def bookmarks(request): + if not request.user.is_authenticated: + return JsonResponse({}) try: slug = request.headers['Referer'].rsplit('.', 1)[0].rsplit('/', 1)[-1] except: