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
- Error with realtime channels
I'm performing a subscription to realtime channels, and after a few seconds I get an exception with this error: {\"type\":\"error\",\"data\":{\"code\":1008,\"me...
- Bug: Cloud Function On Schedule Didn't R...
Heya I have a cloud function with this cron `0 17 * * *` to run at 9AM PT every day. I have not touched this since I set it up, and it has been working fine s...
- functions
Code for function not being created in Github. Permissions are set correctly, repository is created, however no code is in the created repository. Just trying...