mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02:00
modules/client/directory/room: Remove power check. (Fixes #128)
This commit is contained in:
parent
e828dfbf13
commit
423284547d
1 changed files with 0 additions and 10 deletions
|
@ -96,16 +96,6 @@ put__directory_room(client &client,
|
||||||
string_view{room_id}
|
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
|
const unique_mutable_buffer buf
|
||||||
{
|
{
|
||||||
48_KiB
|
48_KiB
|
||||||
|
|
Loading…
Reference in a new issue