diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2019-02-25 16:08:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-25 16:08:58 +0000 |
commit | 13bc1e5307d0d1e09556da28b96f305fcc15f8cb (patch) | |
tree | 99b9c0e7248843f2c85cb64285fbc6a1c5f6e35f /synapse/util | |
parent | Use internal-info for identity server. Block reg on fields (diff) | |
download | synapse-13bc1e5307d0d1e09556da28b96f305fcc15f8cb.tar.xz |
Update synapse/util/threepids.py
Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/util')
-rw-r--r-- | synapse/util/threepids.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/util/threepids.py b/synapse/util/threepids.py index 4f3cb9c804..b51ac0add8 100644 --- a/synapse/util/threepids.py +++ b/synapse/util/threepids.py @@ -47,7 +47,7 @@ def check_3pid_allowed(hs, medium, address): if 'hs' not in data: defer.returnValue(False) - if data.get('requires_invite', False) and data.get('invited', False) == False: + if data.get('requires_invite', False) and not data.get('invited', False): # Requires an invite but hasn't been invited defer.returnValue(False) if hs.config.allow_invited_3pids and data.get('invited'): |