The answer to your question is 1948-1967, during the Jordanian occupation. The Israelis liberated the eastern part of the city in 1967 and since then it has been open to all. FACT.
Defense Ministry says had no knowledge of alleged improper defense deals by Gal Hirsch (Haaretz)
from the article: Netanyahu: Next year in a more built up Jerusalem