According to George Will, Oliver Wendell Holmes had it right more than 100 years ago:

[A] policeman “may have a constitutional right to talk politics, but he has no constitutional right to be a policeman.”

It’s an important distinction.