Fix max authors shown

This commit is contained in:
Ozzieisaacs
2019-03-10 19:26:39 +01:00
parent 76d40411dd
commit a0a15b4598
6 changed files with 15 additions and 14 deletions
+1
View File
@@ -709,6 +709,7 @@ def before_request():
g.allow_registration = config.config_public_reg
g.allow_upload = config.config_uploading
g.current_theme = config.config_theme
g.config_authors_max = config.config_authors_max
g.public_shelfes = ub.session.query(ub.Shelf).filter(ub.Shelf.is_public == 1).order_by(ub.Shelf.name).all()
if not config.db_configured and request.endpoint not in ('basic_configuration', 'login') and '/static/' not in request.path:
return redirect(url_for('basic_configuration'))