From 7218a5db360b75ac8a440b9c19d0fbfd84ce7627 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 17 Aug 2019 12:16:19 -0700 Subject: [PATCH] ircd::m::event::auth: Fix missing state_key param to power check. --- ircd/m_event.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/m_event.cc b/ircd/m_event.cc index 057966a97..45f1a7f39 100644 --- a/ircd/m_event.cc +++ b/ircd/m_event.cc @@ -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."