The Palm Beach, Fla., Sheriff’s Office did not violate the U.S. Constitution when it fired two deputies for appearing in pornography distributed on the Internet, a federal appeals court has decided.

A three-judge panel of the 11th U.S. Circuit Court of Appeals unanimously held late last month that the deputies’ online escapades were not constitutionally protected because government employees may be limited in their speech if that speech has a negative or detrimental effect on the integrity of the government.