Creating different user roles for a frontend app can get a little messy as the project progresses. Suddenly the definitions of user permissions are scattered and duplicated throughout UI Components, API services or database queries. (Been there, done that 😱)
In his article Managing User Permissions in a VueJS App Anthony Gore guides you through a clean way to adapt your app to different user permissions using the CASL Authorization Library!