Fix for #360 and guest accounts

This commit is contained in:
OzzieIsaacs
2017-10-09 22:36:47 +02:00
parent 1eb10be253
commit 366bf9739b
5 changed files with 20 additions and 15 deletions

View File

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