aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-26 21:25:52 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-08-26 21:25:52 +0200
commit3e4f683e9c9812b1babb0828d3edc59037c0599f (patch)
tree7f5c5840feed4fe0f71052b9f28894e41cf61d5e
parentChanged a test of a environment variable. Updated README. (diff)
downloadnewspipe-3e4f683e9c9812b1babb0828d3edc59037c0599f.tar.gz
newspipe-3e4f683e9c9812b1babb0828d3edc59037c0599f.tar.bz2
newspipe-3e4f683e9c9812b1babb0828d3edc59037c0599f.zip
Bugfix.
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index 06459b4f..fc0761d2 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -183,7 +183,7 @@ def signup():
"""
Signup page.
"""
- if int(os.environ.get("SELF_REGISTRATION", 0)) =! 1:
+ 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