Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DINSIC] Use internal-info for identity server #4681

Merged
merged 4 commits into from Feb 28, 2019
Merged
Diff settings

Always

Just for now

Update synapse/util/threepids.py

Co-Authored-By: anoadragon453 <1342360+anoadragon453@users.noreply.github.com>
  • Loading branch information...
richvdh and anoadragon453 committed Feb 25, 2019
commit 13bc1e5307d0d1e09556da28b96f305fcc15f8cb
@@ -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'):
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.