0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-28 19:58:53 +02:00

modules/m_event: Fix room::power interface misuse.

This commit is contained in:
Jason Volk 2019-02-14 15:08:18 -08:00
parent 194160a735
commit b351b40961

View file

@ -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