When the legislative body of the city or sanitary district to which a request has been made fails to grant permission or prescribe the terms upon which the permission may be granted for three months from the filing of the request, such failure is deemed a refusal to grant the request.