Section 13. No person employed for compensation, other than an elected officer, by the commonwealth or any county, city or town shall directly or indirectly solicit or receive any gift, payment, contribution, assessment, subscription or promise of money or other thing of value for the political campaign purposes of any candidate for public office or of any political committee, or for any political purpose whatever, but this section shall not prevent such persons from being members of political organizations or committees. A person so employed may not serve as the treasurer of a political committee. The soliciting or receiving of any gift, payment, contribution, assessment, subscription or promise of money or other thing of value by a non-elected political committee organized to promote the candidacy for public office of a person so employed for compensation by the commonwealth or any county, city or town, shall not be deemed to be a direct or indirect solicitation or receipt of such contribution by such person; provided, however, that no such gift, payment, contribution, assessment, subscription or promise of money or other thing of value may be solicited or received on behalf of such a person from any person or combination of persons if such person so employed knows or has reason to know that the person or combination of persons has an interest in any particular matter in which the person so employed participates or has participated in the course of such employment or which is the subject of his official responsibility.
Any appointed officer or employee convicted of violating any provision of this section may be removed by the appointing authority without a hearing.
Violation of any provision of this section shall be punished by imprisonment for not more than one year or by a fine of not more than one thousand dollars.