Specific User Access

Is it possible to limit access to certain pages for member users of my website? I have content that needs to be bought before they can view it and I want to make sure that only members that have purchased the content can see it. (And prevent another member being able to view the content just by getting a link).

I’ve looked over wix-user-api and hooks information, but I’ve found it extremely difficult to understand in context with what I want to achieve.

There may be a way to do this by using databases, but I’m completely lost on how I would go about doing that. Adding a specific permission field might work, but how would I make it so that the database page blocks out anyone without that field?

I apologize if this is a little confusing, and appreciate any help! Thank you!

Hi Ladi,

Try looking into the following thread, I think it holds all the infroamtion you are looking for

Adi

Hi Adi,

I apologize for the late response! Thank you for responding and for the link. I’m going to have multiple online products that need to be paid for individually, and only accessed online after it has been bought rather than information in the user’s information

Luckily, I noticed recently that WIX had a feature that allows you to create new roles and restrict certain pages to the people that have that role applied to their account!

I still have to add these roles on manually as people purchase the products, which might be tedious, but it’s a good start!

Thank you again for your help!