An Israeli army officer was removed from his post for participating in a demonstration wearing his military uniform.

The disciplinary decision is the first of its kind since a social and political crisis erupted in the Jewish state over a controversial justice reform promoted by the prime minister’s far-right government. Benjamin Netanyahu which has sparked mass mobilizations since last January, strikes, and infighting in the ranks of the Israeli army.

Local media reported that the officer, with the rank of major, was seen on television taking part in a pro-government rally held on Thursday at a pro-reform demonstration.

Military personnel up to the rank of lieutenant colonel are allowed to participate in political demonstrations provided they do not wear their uniform and are not recognizable as military, according to The Times of Israel.

The army confirmed the officer’s rank but, in a statement about his misconduct, said only that the officer took part in a demonstration last week wearing his military uniform and was stripped of his command powers.

“The participation of an IDF officer in a demonstration while in uniform is prohibited and completely unacceptable,” the IDF said in a statement.

The dispute over judicial reform is also having an impact on Israel’s armed forces, which have traditionally stayed out of political affairs.

Some reservists, on whom the Israeli military relies heavily, have threatened to refuse call-up orders if the reforms go ahead.

Expressing concern about the country’s military preparedness, Defense Minister Yoav Gallad publicly called last month for the reform to be suspended. Netanyahu responded by announcing Gallad’s ouster, but then the prime minister backed down, keeping the minister in his post.