diff --git a/cps/opds.py b/cps/opds.py index cd77db35..2226895c 100644 --- a/cps/opds.py +++ b/cps/opds.py @@ -130,7 +130,7 @@ def feed_best_rated(): @opds.route("/opds/hot") @requires_basic_auth_if_no_ano def feed_hot(): - if not current_user.check_visibility(constants.SIDEBAR_DOWNLOAD): + if not current_user.check_visibility(constants.SIDEBAR_HOT): abort(404) off = request.args.get("offset") or 0 all_books = ub.session.query(ub.Downloads, func.count(ub.Downloads.book_id)).order_by( diff --git a/cps/templates/index.xml b/cps/templates/index.xml index 8d4cfadb..4c088e37 100644 --- a/cps/templates/index.xml +++ b/cps/templates/index.xml @@ -22,7 +22,7 @@ {{ current_time }} {{_('Books sorted alphabetically')}} - {% if current_user.check_visibility(g.constants.SIDEBAR_DOWNLOAD) and (not current_user.is_anonymous) %} + {% if current_user.check_visibility(g.constants.SIDEBAR_HOT) %} {{_('Hot Books')}}