fix owner check

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

View File

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