adding role based access to certain pages
Unanswered
Japanese jack mackerel posted this in #help-forum
Japanese jack mackerelOP
Heyo so in the simplest case lets say i want an admin page that will only show up on a users profile if they have the admin, but i also have different roles, ie roles to allow people to edit specific categories, to manage members in their team etc. how would i go about implmenting that? would i have a schema attached to each user that is just a list of all the roles and then a boolean? and then when a page loads it checks whether they have a role and then adds that additional component