mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 15:00:51 +01:00
modules/m_event: Fix room::power interface misuse.
This commit is contained in:
parent
194160a735
commit
b351b40961
1 changed files with 1 additions and 1 deletions
|
@ -951,7 +951,7 @@ ircd::m::event::auth::failed(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), {}, at<"type"_>(event)))
|
||||
if(!power(at<"sender"_>(event), "events", at<"type"_>(event)))
|
||||
return "sender has insufficient power for event type.";
|
||||
|
||||
// 9. If the event has a state_key that starts with an @ and does not
|
||||
|
|
Loading…
Reference in a new issue