city’s knowledge and consent