Determine whether logged-in customer has purchased the current product (page)

Is there a way to find out whether the current product (page being viewed) has been purchased by the logged in customer? I want to upload attachments with the product, and I want these attachments to be available for download only to customers who have purchased that product. Thanks in advance.