diff options
author | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-03 14:42:01 +0000 |
---|---|---|
committer | Daniel Wagner-Hall <daniel@matrix.org> | 2016-02-03 14:42:01 +0000 |
commit | 5054806ec1f64fd784d9e74d73a678643d539c3f (patch) | |
tree | 56c2064c9e77f5b6644ca55e59e3e195df234e23 /synapse/rest/client/v2_alpha/register.py | |
parent | Add macaroon inspection script (diff) | |
download | synapse-5054806ec1f64fd784d9e74d73a678643d539c3f.tar.xz |
Rename config field to reflect yaml name
Diffstat (limited to 'synapse/rest/client/v2_alpha/register.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/register.py | 2 |
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) |