Smiley
Can I fetch what label the user has 'user' or 'admin' and give permission to visit the page..
TL;DR
Labels can only be set using the Console or Server SDK. They can be used as roles, and you can fetch the label assigned to a user using `account.get()`. You can then give permissions to visit a page based on the label. Drake
sure. it's in the response of account.get()
Smiley
is it safe to use them as roles?
ideclon
Labels can only be set from the Console or with a Server SDK. So yes.
Recommended threads
- Invalid document structure: missing requ...
I just pick up my code that's working a week ago, and now I got this error: ``` code: 400, type: 'document_invalid_structure', response: { message: 'Inv...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- Custom emails
What happen if I use a third party email provider to customize my emails and my plan run out of emails/month? Appwrite emails are used as fallback sending emai...