The article isn't clear whether this is merely violating the ethics rules of being a public official, or whether it is illegal. Moose's wife mentions jail at the end of the article but I'd be surprised if that's the real consequence. I absolutely believe it shouldn't be illegal for him to publish his book.

But I do think it's reasonable that he cannot keep his job as a public official if he did indeed agree to an ethics guideline that prevents him from making personal profit.

-Dylan