No action shall be maintained for the purchase price or value of any food, the sale of which is now or hereafter prohibited by law or which is manufactured, used, sold, transported, kept or offered for sale, use, or transportation, or had in possession with intent to sell, use, or transport in violation of any law now or hereafter enacted; nor shall any person be liable for the price or value of food or board furnished in violation of any such law.