mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 14:24:05 +01:00
Fix overzealous kicking of guest users (#2453)
We should only kick guest users if the guest access event is authorised.
This commit is contained in:
parent
290777b3d9
commit
3f405b34e9
1 changed files with 1 additions and 1 deletions
|
@ -1606,7 +1606,7 @@ class FederationHandler(BaseHandler):
|
|||
|
||||
context.rejected = RejectedReason.AUTH_ERROR
|
||||
|
||||
if event.type == EventTypes.GuestAccess:
|
||||
if event.type == EventTypes.GuestAccess and not context.rejected:
|
||||
yield self.maybe_kick_guest_users(event)
|
||||
|
||||
defer.returnValue(context)
|
||||
|
|
Loading…
Reference in a new issue