diff --git a/sourcing/templates/navbar-pale-fire.html b/sourcing/templates/navbar-pale-fire.html index 743ae94..715a618 100644 --- a/sourcing/templates/navbar-pale-fire.html +++ b/sourcing/templates/navbar-pale-fire.html @@ -22,9 +22,11 @@ logout {% else %} - + {% if config.ALLOW_SIGNUP %} + + {% endif %} diff --git a/sourcing/templates/navbar.html b/sourcing/templates/navbar.html index 2493dbf..34fe230 100644 --- a/sourcing/templates/navbar.html +++ b/sourcing/templates/navbar.html @@ -27,9 +27,11 @@ logout {% else %} - + {% if config.ALLOW_SIGNUP %} + + {% endif %} diff --git a/sourcing/view.py b/sourcing/view.py index 8bf949f..d023bfc 100644 --- a/sourcing/view.py +++ b/sourcing/view.py @@ -177,6 +177,8 @@ def logout(): @bp.route('/signup', methods=['GET', 'POST']) def signup(): + if not current_app.config.get('ALLOW_SIGNUP'): + abort(404) form = SignupForm() if not form.validate_on_submit(): return render_template('signup.html', form=form)