From 4cbdccd39ed93fddee797b1de4dc8cb5a7efc92e Mon Sep 17 00:00:00 2001 From: W1ndst0rm Date: Tue, 13 Aug 2019 18:39:52 -0600 Subject: [PATCH] Fix for https://github.com/janeczku/calibre-web/issues/1002 --- cps/shelf.py | 1 - cps/templates/layout.html | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cps/shelf.py b/cps/shelf.py index a34dbfed..0440a87b 100644 --- a/cps/shelf.py +++ b/cps/shelf.py @@ -268,7 +268,6 @@ def delete_shelf(shelf_id): # @shelf.route("/shelfdown/") @shelf.route("/shelf/", defaults={'shelf_type': 1}) @shelf.route("/shelf//") -@login_required def show_shelf(shelf_type, shelf_id): if current_user.is_anonymous: shelf = ub.session.query(ub.Shelf).filter(ub.Shelf.is_public == 1, ub.Shelf.id == shelf_id).first() diff --git a/cps/templates/layout.html b/cps/templates/layout.html index dcbbc08f..72eba890 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -128,7 +128,7 @@ {% endif %} {% endfor %} - {% if g.user.is_authenticated or allow_anonymous %} + {% if g.user.is_authenticated or g.allow_anonymous %} {% for shelf in g.public_shelfes %}
  • {{shelf.name|shortentitle(40)}}