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:
Richard van der Hoff 2017-09-19 08:52:52 +01:00 committed by GitHub
parent 290777b3d9
commit 3f405b34e9

View File

@ -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)