Hello to everyone,
I have a general question on “Vue JS best pratice”.
I am building a REST API with Sails JS as backend and Vue JS as frontend. The level permissions are defined in my backend with policies acting like a hook anytime a route is called from my front-end app so I can verify the user’s permission.
On my authentified web interface, for example, if I’d like to build a function for only one of my pre defined role, how should I handle it ?
Should I store the role of the user when he logs in and use a simple v-if ? But it doesn’t seem very secure, is it ?
Any suggestion would be appreciates