Put onto User data type a field that is list of purchased products. After purchase add product to that field. Only show users products in their purchased product list field.