fix owner check

This commit is contained in:
Aine
2024-02-05 22:21:15 +02:00
parent 0bd2fc525e
commit 0a9701f4c9

View File

@@ -61,7 +61,7 @@ func (b *Bot) allowOwner(actorID id.UserID, targetRoomID id.RoomID) bool {
return true
}
return owner == actorID.String()
return owner == actorID.String() || b.allowAdmin(actorID, targetRoomID)
}
func (b *Bot) allowAdmin(actorID id.UserID, _ id.RoomID) bool {