NodeJS - Security - How to restrict certain pages, certain permissions

Hi, I’m struggling to add privilege checks for certain pages and was hoping someone might be able to point me to some documentation that describes how i should do this?

I have created different server actions depending on the privileges associated with each page e.g.
User, CompanyAdmin

Each User is assigned to a role with, for example, someone who is CompanyAdmin has permission to access CompanyAdmin and User restricted pages

Could someone point me to any recent examples or documentation… Thanks

Community Page
Last updated: