1👍
✅
Yes, you can send to the client, after a successful login, the user’ data plus his roles and permissions, and create a Vue component named Can
, for example, that only show something if the user has the role or permission to do so.
<can permission="post.delete">
<v-btn>Delete record</v-btn>
<can>
The Can component access the user data (which includes his roles and permissions) and check if the user has the ability to see the underlying content.
Source:stackexchange.com