Israel's Supreme Court has ordered the military to reconsider its ban on Gaza residents studying in the West Bank.

The court posted its decision Thursday, implying it would order a change. The Israeli military has 45 days to respond.

Sari Bashi, head of the Israeli human rights group Gisha who was involved in petitioning the court, said this was the first time such a ruling has been made.

Citing security, Israel imposed the ban in 2000 after a violent Palestinian uprising erupted. Before then, some 1,000 Gaza residents studied in the West Bank every year.

The two territories have rival governments. The Islamic militant Hamas overran Gaza in 2007, expelling forces loyal to Western-backed President Mahmoud Abbas, who now rules only the West Bank.