diff options
author | David Baker <dave@matrix.org> | 2017-10-03 17:13:14 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2017-10-03 17:13:14 +0100 |
commit | 1e375468de914fdefc7c0b4b65217c4ec95784a4 (patch) | |
tree | 1c3809a25ad26eefb077dc68af0fe77302232183 /synapse/handlers/federation.py | |
parent | Federation was passing strings anyway (diff) | |
download | synapse-1e375468de914fdefc7c0b4b65217c4ec95784a4.tar.xz |
pass room id too
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r-- | synapse/handlers/federation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py index 8571350cc8..737fe518ef 100644 --- a/synapse/handlers/federation.py +++ b/synapse/handlers/federation.py @@ -1078,7 +1078,7 @@ class FederationHandler(BaseHandler): if self.hs.config.block_non_admin_invites: raise SynapseError(403, "This server does not accept room invites") - if not self.spam_checker.user_may_invite(event.sender): + if not self.spam_checker.user_may_invite(event.sender, event.room_id): raise SynapseError( 403, "This user is not permitted to send invites to this server" ) |