Back

Noticed a lot of guides using Lables to determine roles and permissions. Why use Role class then?

  • 0
  • General
  • Web
Zynth
24 Sep, 2024, 09:48

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more