Before they came to Shiloh, the bamoth were permitted. After they came to Shiloh, the bamoth were forbidden. When they came to Nov and Giveon, the bamoth were permitted. When they came to Jerusalem, the bamoth were forbidden, and not permitted again, as it is written "You shall not do as all that we do here today":
We move the mishkan. Today, bamoth are forbidden to us. When we come to Eretz Yisrael, we do not move the mishkan and bamoth are permitted to us.
R. Yehudah says: I might think that the congregation sacrificed on a bamah; it is, therefore, written "a man, all that is fitting in his eyes" — An individual sacrifices on a bamah, but not the congregation.