1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-12-08 09:18:06 +00:00

Disable bookmarking when anonymous users are reading

This commit is contained in:
Jonathan Rehm
2017-09-30 10:51:20 -07:00
parent 0512e5a940
commit 56c71dd4bf
3 changed files with 12 additions and 4 deletions

View File

@@ -83,7 +83,8 @@
cssPath: "{{ url_for('static', filename='css/') }}",
bookUrl: "{{ url_for('static', filename=bookid) }}/",
bookmarkUrl: "{{ url_for('bookmark', book_id=bookid, book_format='EPUB') }}",
bookmark: "{{ bookmark.bookmark_key if bookmark != None }}"
bookmark: "{{ bookmark.bookmark_key if bookmark != None }}",
useBookmarks: {{ g.user.is_authenticated | tojson }}
};
</script>
<script src="{{ url_for('static', filename='js/libs/jquery.min.js') }}"></script>