aboutsummaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-23 15:49:12 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-09-23 15:49:12 +0100
commitb4b241600704cf1be963a1ff51191eec020434a4 (patch)
tree5bf05359e43afa46283c737e084a1208c7e028f5 /config.py
parentBump version (diff)
downloadAnnotateChange-b4b241600704cf1be963a1ff51191eec020434a4.tar.gz
AnnotateChange-b4b241600704cf1be963a1ff51191eec020434a4.zip
Add configuration option for accepting registrations
Diffstat (limited to 'config.py')
-rw-r--r--config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.py b/config.py
index 8ebcece..dc25767 100644
--- a/config.py
+++ b/config.py
@@ -60,3 +60,6 @@ class Config(object):
USER_EMAILS = os.environ.get("USER_EMAILS") or ""
USER_EMAILS = [x.strip() for x in USER_EMAILS.split(";") if x.strip()]
USER_EMAILS = None if not USER_EMAILS else USER_EMAILS
+
+ # other
+ ACCEPTING_REGISTRATION = bool(int(os.environ.get('ACCEPTING_REGISTRATION', 0))) or False