mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 15:08:48 -05:00
Make sure we reject attempts to invite the notices user
This commit is contained in:
parent
d10707c810
commit
26305788fe
3 changed files with 20 additions and 0 deletions
|
|
@ -309,6 +309,13 @@ class RoomMemberHandler(object):
|
|||
)
|
||||
|
||||
if effective_membership_state == Membership.INVITE:
|
||||
# block any attempts to invite the server notices mxid
|
||||
if target.to_string() == self._server_notices_mxid:
|
||||
raise SynapseError(
|
||||
http_client.FORBIDDEN,
|
||||
"Cannot invite this user",
|
||||
)
|
||||
|
||||
block_invite = False
|
||||
|
||||
if (self._server_notices_mxid is not None and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue