Hi team
I have scenarios
- I have a collection
- User can read all of documents in the collection
- User can create documents on the collection
- User can edit/update documents that their created (only users own)
- User cannot edit other user document
How to setup the roles for this scenarios?
Thank you
Set collection Roles:- select users and tick create and read, make sure you have enabled document security. And while creating documents pass the list of permissions which contains Permission.update(Role.user(current_user_id)), Permission.delete(Role.user(current_user_id))
You don’t actually have to pass the Permissions - the creating user automatically has all permissions on the Document
@ideclon oh okay
Recommended threads
- {"message":"Server Error","code":500,"ty...
Hi, I am using Appwrite Cloud. I had created a new relation for a table. Since it was not letting me delete an appointment, I removed the relation from the mess...
- AttributeError: 'Context' object has no ...
I'm getting an error executing my function. I'm not able to replicate this locally since I have to use a mock context. Is there a way to debug this kind of erro...
- Support for adding domain...
I dont know how to setup domain on appwrite sites, need your help