The High Court of Kenya has made a major ruling against the country’s proposed anti-terror laws, overturning the state restrictions on the media to report on security operations.

The court first suspended parts of the anti-terror law in January.

Kenya’s government argues the measures are needed to confront a wave of attacks by the armed group al-Shabab, the armed organistaion in control of parts of territory in neighbouring Somalia.

Al Jazeera’s Haru Mutasa, reporting from the courtroom, said that the section of the security law that called for more control on the media has been struck off by the judges.

They said it ‎limited the right of freedom of expression and is a violation of the constitution, Mutasa said.

The law prohibits reporting in matters under investigation or reporting on security operations.

President Uhuru Kenyatta signed the bill into law in December 2014.

Source: Al Jazeera