mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
refuse admin room alias changes unless admin bot
I.e. don't allow the `#admins:example.com` alias to be set or unset by any user other than `@grapevine:example.com`.
This commit is contained in:
parent
273ab33809
commit
c7e03a06f7
4 changed files with 56 additions and 11 deletions
|
|
@ -1427,7 +1427,11 @@ impl Service {
|
|||
)
|
||||
.await?;
|
||||
|
||||
services().rooms.alias.set_alias(alias, &room_id)?;
|
||||
services().rooms.alias.set_alias(
|
||||
alias,
|
||||
&room_id,
|
||||
&services().globals.admin_bot_user_id,
|
||||
)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue