aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-26 21:20:25 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-26 21:20:25 +0200
commit0e7bff35ec42fbcaf43f4c4f3512e3466297fe6b (patch)
tree19624f1adf1ec3f745adb1e9c0c1ad7f8755aa54 /pyaggr3g470r
parentMinor typo.. (diff)
downloadnewspipe-0e7bff35ec42fbcaf43f4c4f3512e3466297fe6b.tar.gz
newspipe-0e7bff35ec42fbcaf43f4c4f3512e3466297fe6b.tar.bz2
newspipe-0e7bff35ec42fbcaf43f4c4f3512e3466297fe6b.zip
Changed a test of a environment variable. Updated README.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
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():
bgstack15