diff options
author | Neil Johnson <neil@matrix.org> | 2019-01-22 16:52:29 +0000 |
---|---|---|
committer | Neil Johnson <neil@matrix.org> | 2019-01-22 16:52:29 +0000 |
commit | d619b113edf2942185a502a91cbf5b51642f6814 (patch) | |
tree | 974689abd0c86e184934a8668d08bb59c19dabd2 /synapse/api/auth.py | |
parent | Merge pull request #4423 from matrix-org/neilj/disable_msisdn_on_registration (diff) | |
download | synapse-d619b113edf2942185a502a91cbf5b51642f6814.tar.xz |
Fix None guard in config.server.is_threepid_reserved
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r-- | synapse/api/auth.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index ba1019b9b2..e37b807c94 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -819,7 +819,9 @@ class Auth(object): elif threepid: # If the user does not exist yet, but is signing up with a # reserved threepid then pass auth check - if is_threepid_reserved(self.hs.config, threepid): + if is_threepid_reserved( + self.hs.config.mau_limits_reserved_threepids, threepid + ): return # Else if there is no room in the MAU bucket, bail current_mau = yield self.store.get_monthly_active_count() |