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
- User Blocked - False Positive
Today I tried to log in to my cloud console and it said the user is blocked and I didn't even receive any email regarding this like what kind of violation is my...
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please