Both are restrictions on civil liberties. In almost all cases, such restrictions are defined by conditions or circumstances that are specific to the individual case. In Deri's case, the article includes these points:
"When Deri signed his plea deal, the prosecution and the judge made it clear that they understood he was leaving political life. But less than a year later, he ran for office again, claiming he never said his departure from public life would be forever.
To allow Deri to be sworn in, the Knesset had to change a law that said a person who was sentenced to prison time or probation in the last seven years couldn't serve as a minister...
Supreme Court President Esther Hayut wrote in the decision that Deri made clear in his own statements that he would no longer deal with public money."