#[SOLVED] Noticed a lot of guides using Lables to determine roles and permissions. Why use Role ...

1 messages · Page 1 of 1 (latest)

torpid parcel
#

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?

paper heart
#

You'll use the role class even when setting up permissions for labels.

https://appwrite.io/docs/advanced/platform/permissions#permission-roles

Labels in Appwrite are what most other services call Roles. So if someone has subscribed to your app, you'll create a subscriber label, and then you can lock content to make it only viewable to users with the subscriber label.

Permission.read(Role.label('subscriber'))

torpid parcel
#

[Solved] Noticed a lot of guides using Lables to determine roles and permissions. Why use Role ...