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)}}