Permissions for specific cms entry

Question:
How can I protect permissions for specific cms entries

Product:
Wix Studio.

What are you trying to achieve:
I have a CMS collection which holds the lessons for all of my online courses (I had to build my own custom course page because I needed some additional fuctionality which the Wix app wouldn’t allow).

I am able to protect the entire collection (which is all of the lessons). But I want to be able to control viewing access only to specific entries from the CMS collection.

What have you already tried:
I am able to control the permissions for an entire collection with payment plans or member roles.

Additional information:
I have a fantastic velo code developer I can contact for this work. But if there is a way or work around for this that doesn’t require Velo coding, that would be amazing.

There’s no way to do that natively. You could restrict access to the entire collection, then handle the data fetching using custom login through the backend

Thanks so much @DeanAyalon . Would this use member roles?

It can use anything available within the Velo API

You can access a member’s roles using wixMembers.currentMember.getRoles

So, you could have an additional field in your CMS collection which pertains to the role required to access that record

Then in the backend, fetch the record, check the required role, match it up with the logged in user, and return it or deny the request. Voilà :slight_smile: