diff options
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 26a483c1..57909e8a 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -183,7 +183,7 @@ def signup(): """ Signup page. """ - if g.user is not None and g.user.is_authenticated(): + if (g.user is not None and g.user.is_authenticated()) or not os.environ.get("SELF_REGISTRATION", False): return redirect(url_for('home')) form = SignupForm() |