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:
parent
1ec8ab2d0d
commit
7218a5db36
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue