mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 22:12:24 +01:00
Allow indexing collections list page
This commit is contained in:
parent
bcebb72a66
commit
315337d552
@ -54,7 +54,7 @@ def list_all(author=None):
|
||||
collections = [x for x in query.all() if x.check_perm(current_user, Permission.VIEW_COLLECTION)]
|
||||
return render_template("collections/list.html",
|
||||
user=user, collections=collections,
|
||||
noindex=user is None or len(collections) == 0)
|
||||
noindex=len(collections) == 0)
|
||||
|
||||
|
||||
@bp.route("/collections/<author>/<name>/")
|
||||
|
Loading…
Reference in New Issue
Block a user