summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-09-22 11:59:46 +0100
committerErik Johnston <erik@matrix.org>2016-09-22 11:59:46 +0100
commit2e9ee3096907573773d3f0e4ff22dd014b8253c8 (patch)
tree897660da8a4440b4a667e3e202a96829f85df546 /synapse/api
parentShuffle things around to make unit tests work (diff)
downloadsynapse-2e9ee3096907573773d3f0e4ff22dd014b8253c8.tar.xz
Add comments
Diffstat (limited to '')
-rw-r--r--synapse/api/auth.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 377bfcc482..5bd250992a 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -103,6 +103,9 @@ class Auth(object):
 
                 # Check the sender's domain has signed the event
                 if not event.signatures.get(sender_domain):
+                    # We allow invites via 3pid to have a sender from a differnt
+                    # HS, as the sender must match the sender of the original
+                    # 3pid invite. This is checked further down.
                     if not is_invite_via_3pid:
                         raise AuthError(403, "Event not signed by sender's server")