Skip to content
Snippets Groups Projects
Commit 5497dc36 authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Don't allow server admins to bypass user_may_join_room callback

It's mostly used to track accepting invites, not actually blocking joins,
so it should be able to track everyone.
parent 8681621d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment