I'm using the organisation plugin and i have created some custom roles.
On the client I have a sidebar where some items are gated depending on the role of the member. So i don't have to go back to the server multiple times, im calling
getActiveMember
getActiveMember
in my layout and passing the role of the active member into the sidebar and then making use of
authClient.organization.checkRolePermission
authClient.organization.checkRolePermission
.
I'd like to specify in a central location all my sidebar items and groups and what permissions are needed to access the page.