0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 14:58:20 +02:00

modules/client/directory/room: Remove power check. (Fixes #128)

This commit is contained in:
Jason Volk 2019-08-13 22:01:51 -07:00
parent e828dfbf13
commit 423284547d

View file

@ -96,16 +96,6 @@ put__directory_room(client &client,
string_view{room_id}
};
// Preliminary check
const m::room::power power{room_id};
if(!power(request.user_id, "", "m.room.aliases", room_alias.host()))
throw m::ACCESS_DENIED
{
"Insufficient power in %s to set alias %s",
string_view{room_id},
string_view{room_alias}
};
const unique_mutable_buffer buf
{
48_KiB