From 0e7bff35ec42fbcaf43f4c4f3512e3466297fe6b Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 26 Aug 2014 21:20:25 +0200 Subject: Changed a test of a environment variable. Updated README. --- pyaggr3g470r/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 21490414..06459b4f 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -183,7 +183,7 @@ def signup(): """ Signup page. """ - if not os.environ.get("SELF_REGISTRATION", False): + if int(os.environ.get("SELF_REGISTRATION", 0)) =! 1: flash(gettext("Self-registration is disabled."), 'warning') return redirect(url_for('home')) if g.user is not None and g.user.is_authenticated(): -- cgit