0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-19 11:01:54 +01:00

ircd:Ⓜ️:event::auth: Fix missing state_key param to power check.

This commit is contained in:
Jason Volk 2019-08-17 12:16:19 -07:00
parent 1ec8ab2d0d
commit 7218a5db36

View file

@ -2002,7 +2002,7 @@ ircd::m::check_event_auth_rule_8(const m::event &event,
// 8. If the event type's required power level is greater than the // 8. If the event type's required power level is greater than the
// sender's power level, reject. // sender's power level, reject.
if(!power(at<"sender"_>(event), "events", at<"type"_>(event))) if(!power(at<"sender"_>(event), "events", at<"type"_>(event), json::get<"state_key"_>(event)))
throw FAIL throw FAIL
{ {
"sender has insufficient power for event type." "sender has insufficient power for event type."