0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-29 08:54:02 +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
// 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
{
"sender has insufficient power for event type."