The Howard Government legislated in 2006 to ban all prisoners from voting. In 2007, the High Court of Australia in "Roach v Electoral Commissioner" found that the Australian constitution enshrined a limited right to vote, which meant that citizens serving relatively short prison sentences (generally less than three years) cannot be barred from voting. The threshold of three years or more sentence will only result in removal of a prisoner's right to vote in federal elections. Depending on the threshold of exclusion which is distinct in each state, a prisoner may be able to vote in either state elections or federal elections. For example, prisoners in New South Wales serving a sentence of longer than one year are not entitled to vote in state elections.