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
-
Role : You can restrict page access via the permission panel (see page settings) to only members of a given role.
-
PaidPlan : you create paid plan (for free) and you restrict access to a page based on paid plan (see permission in page settings)
-
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