summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/util/threepids.py2
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'):