state-res: Fix third party invite validation
This commit is contained in:
parent
86b58cafb8
commit
68eecf71af
@ -1,5 +1,11 @@
|
|||||||
# [unreleased]
|
# [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
|
# 0.8.0
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
@ -364,6 +364,9 @@ pub fn auth_check<E: Event>(
|
|||||||
warn!("sender's cannot send invites in this room");
|
warn!("sender's cannot send invites in this room");
|
||||||
return Ok(false);
|
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
|
// If the event type's required power level is greater than the sender's power level, reject
|
||||||
|
Loading…
x
Reference in New Issue
Block a user