mirror of
https://github.com/janeczku/calibre-web
synced 2025-11-07 02:33:01 +00:00
Read book is now tied to the right downlolad books for guest users (fixes #110)
This commit is contained in:
@@ -1203,7 +1203,7 @@ def feed_get_cover(book_id):
|
||||
|
||||
|
||||
@app.route("/read/<int:book_id>/<format>")
|
||||
@login_required
|
||||
@login_required_if_no_ano
|
||||
def read_book(book_id, format):
|
||||
book = db.session.query(db.Books).filter(db.Books.id == book_id).first()
|
||||
if book:
|
||||
|
||||
Reference in New Issue
Block a user