summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2016-02-03 14:42:01 +0000
committerDaniel Wagner-Hall <daniel@matrix.org>2016-02-03 14:42:01 +0000
commit5054806ec1f64fd784d9e74d73a678643d539c3f (patch)
tree56c2064c9e77f5b6644ca55e59e3e195df234e23 /synapse/rest/client/v2_alpha
parentAdd macaroon inspection script (diff)
downloadsynapse-5054806ec1f64fd784d9e74d73a678643d539c3f.tar.xz
Rename config field to reflect yaml name
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/register.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 56a5bbec30..ec5c21fa1f 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -117,7 +117,7 @@ class RegisterRestServlet(RestServlet):
             return
 
         # == Normal User Registration == (everyone else)
-        if self.hs.config.disable_registration:
+        if not self.hs.config.enable_registration:
             raise SynapseError(403, "Registration has been disabled")
 
         guest_access_token = body.get("guest_access_token", None)