"An official who, on the ground of differences in nationality, race, religion, ethnic background, sex, language, education or social status, denies or restricts the rights of citizens laid down by the law, Constitution or other regulation or general act, or who, on the basis of such distinction, grants privileges or advantages, shall be punished by imprisonment for a term exceeding three months but" . . . . . .