I have a backend with a simple RBAC implementation. We have a list of permissions, each permission is associated with a list of roles, each user is given one or more roles.
Is it ok to send this permissions/roles mapping to the browser, so that we can use it in the client side SPA (to hide/show some links/pages, avoid sending a request to the server, ...) depending on the connected user.
Of course we will still perform permission check on the backend.