Noticed a lot of guides using Lables to determine roles and permissions, for example in admin API in a Next.js application.
Why use Role class then? Are Roles uniquely for setting up permissions and roles for the Documents?
TL;DR
Developers are using labels to determine roles and permissions in guides for admin API in a Next.js application. They wonder why use a Role class then? Are Roles solely for setting up permissions and roles for the Documents?
Solution: The Role class is typically used for defining roles and permissions on a broader level in an application, whereas labels may be more specific and tied to individual components or sections. It's best to consider the specific requirements of the project to determine the most suitable approach.