No law enforcement officer may be prohibited from engaging in political activity when not on duty or not otherwise acting in an official capacity, or be denied the right to refrain from engaging in political activity.