X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f7d8acded4a58d423035c5759f6dee9a34396959..ca8f4e8fef80cb603117ed579da8554f503698e5:/src/bookmarks/views.py 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: