I am setting up a new Database and there will be different authenticated users that need to only create, read, update and delete only their own records.
In the Dashboard do I add to permissions Users role and check the create, read, update and delete options? Is this how you setup the rules? Or nothing here?
In my Flutter code I am using:
Permission.read(Role.user(idUser)),
Permission.write(Role.user(idUser)),
Is this the correct combination? In Firebase and Supabase you setup the rules in the Dashboard panel, not in code.
I want to make sure this is done correctly.
Thank you.
ps: I am assuming that the Permission.read() and Permission.write() must be added to the createDocument(), updateDocument(), deleteDocument() Appwrite methods?
Recommended threads
- GitHub Education Plan and File Storage
Hello, when trying to create a file storage bucket, the interface says that the limit for file uploads for GitHub Education users is 0B, but I can upload files ...
- How to customize redirect url in appwrit...
I’m trying to change the verification url redirect from localhost to my custom domain. How do I do this?
- Appwrite Google auth not working in prod...
I tried creating an apk with EAS the apk built successfully i have also set all the `environment` vars in EAS project dashboard, and set the in the 'app.json',...