state-res: Fix third party invite validation

This commit is contained in:
Nyaaori 2022-09-28 11:45:41 +02:00 committed by Kévin Commaille
parent 86b58cafb8
commit 68eecf71af
2 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,11 @@
# [unreleased]
Bug fixes:
* Fix third party invite event authorization. The event was not allowed even
after passing all the required checks, so it could fail further down the
algorithm.
# 0.8.0
Bug fixes:

View File

@ -364,6 +364,9 @@ pub fn auth_check<E: Event>(
warn!("sender's cannot send invites in this room");
return Ok(false);
}
info!("m.room.third_party_invite event was allowed");
return Ok(true);
}
// If the event type's required power level is greater than the sender's power level, reject