fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix for toc events
[wolnelektury.git]
/
src
/
bookmarks
/
views.py
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):
+ if not request.user.is_authenticated:
+ return JsonResponse({})
try:
slug = request.headers['Referer'].rsplit('.', 1)[0].rsplit('/', 1)[-1]
except: