Possible to limit pages based on users role?

I would like to assign a user a role for uploading videos
And I would like to assign a user role for viewing the videos

So ‘creator’ and ‘user’

Is it possible to only allow creators to access ‘creation pages’ and only allow users to access ‘video pages’

How would you go about this
How would you go about this?

Hi Bill, you can simply do it by checking the page owner ID with the ID of the user visiting that page, if they’re the owners of the page they can access it, if they’re not, direct them the home page or to a 403 page.

Hi bill,

I know 3 ways of doing that

  1. Role : You can restrict page access via the permission panel (see page settings) to only members of a given role.

  2. PaidPlan : you create paid plan (for free) and you restrict access to a page based on paid plan (see permission in page settings)

  3. Router (more advance) : you can create a router that will protect your pages based on the user role. This is useful if you need to automated member management as you can’t assign role to member via code.

I think that he wants an experience like YouTube, where members can upload videos that everyone can watch, but only the video owners can edit their own

If all you are doing is wanting to check user role for each member then do what Quentin has already suggested above and set up the creation pages to be viewable only by users with the creator role.
https://support.wix.com/en/article/limiting-pages-on-your-site-to-specific-members-member-roles

You can easily check the role of each user through code to by using Wix Users API and the getRoles function.
https://www.wix.com/corvid/reference/wix-users.html
https://www.wix.com/corvid/reference/wix-users.User.html#getRoles

There are previous posts that you can look at for this too.
https://www.wix.com/corvid/forum/community-discussion/user-roles
https://www.wix.com/corvid/forum/community-discussion/getroles-function-is-not-working/p-1/dl-5e148145dd7d620017498340
https://www.wix.com/corvid/forum/community-discussion/urgent-send-a-user-to-location-based-on-member-role