From 59b18d2848d2561f1547b78921936a501d0f0b37 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 5 Jun 2024 15:20:10 +0200 Subject: [PATCH] quickfix --- src/bookmarks/views.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.20.1