mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Only accept bot invites from user level
This commit is contained in:
parent
77543cc02c
commit
45d989575c
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ func (mx *MatrixHandler) HandleBotInvite(evt *event.Event) {
|
|||
return
|
||||
}
|
||||
|
||||
if user.GetPermissionLevel() <= bridgeconfig.PermissionLevelBlock {
|
||||
if user.GetPermissionLevel() < bridgeconfig.PermissionLevelUser {
|
||||
_, _ = intent.SendNotice(evt.RoomID, "You are not whitelisted to use this bridge.\n"+
|
||||
"If you're the owner of this bridge, see the bridge.permissions section in your config file.")
|
||||
_, _ = intent.LeaveRoom(evt.RoomID)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue