Any county officer or employee, or member of the planning commission of the county board of commissioners, charged with the enforcement of this Code, acting in the discharge of his or her duties, shall not thereby render himself personally liable, and is hereby relieved from all personal liability, for any damage that may occur to persons or property as a result of any act required or permitted in the discharge of his or her duties.