mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 16:06:03 -04:00
pass room id too
This commit is contained in:
parent
c2c188b699
commit
1e375468de
3 changed files with 6 additions and 4 deletions
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue