X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7d8acded4a58d423035c5759f6dee9a34396959..4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f:/src/bookmarks/views.py?ds=inline

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: