fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f7d8acd
)
quickfix
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 5 Jun 2024 13:20:10 +0000
(15:20 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 5 Jun 2024 13:20:10 +0000
(15:20 +0200)
src/bookmarks/views.py
patch
|
blob
|
history
diff --git
a/src/bookmarks/views.py
b/src/bookmarks/views.py
index
7d83818
..
0ff5104
100644
(file)
--- a/
src/bookmarks/views.py
+++ b/
src/bookmarks/views.py
@@
-12,6
+12,8
@@
import re
@cache.never_cache
def bookmarks(request):
@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:
try:
slug = request.headers['Referer'].rsplit('.', 1)[0].rsplit('/', 1)[-1]
except: