mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 13:24:18 -05: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
@ -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 New Issue
Block a user