mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-29 11:33:20 -05:00
Fix param name & lint
This commit is contained in:
parent
84716d267c
commit
2a7ed700d5
@ -1078,8 +1078,10 @@ class FederationHandler(BaseHandler):
|
|||||||
if self.hs.config.block_non_admin_invites:
|
if self.hs.config.block_non_admin_invites:
|
||||||
raise SynapseError(403, "This server does not accept room invites")
|
raise SynapseError(403, "This server does not accept room invites")
|
||||||
|
|
||||||
if not self.spam_checker.user_may_invite(requester.user):
|
if not self.spam_checker.user_may_invite(event.sender):
|
||||||
raise SynapseError(403, "This user is not permitted to send invites to this server")
|
raise SynapseError(
|
||||||
|
403, "This user is not permitted to send invites to this server"
|
||||||
|
)
|
||||||
|
|
||||||
membership = event.content.get("membership")
|
membership = event.content.get("membership")
|
||||||
if event.type != EventTypes.Member or membership != Membership.INVITE:
|
if event.type != EventTypes.Member or membership != Membership.INVITE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user