diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index ccfc7b9793492787970ed87616488f102d789928..d1782758b3202e08dc1142983a8d5f0909a1ab8a 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -1000,9 +1000,6 @@ class RoomMemberHandler(metaclass=abc.ABCMeta): # allow the server notices mxid to join rooms bypass_spam_checker = True - else: - bypass_spam_checker = await self.auth.is_server_admin(requester) - inviter = await self._get_inviter(target.to_string(), room_id) if ( not bypass_spam_checker