https://appwrite.io/docs/permissions
You can read about permissions here
I think examples will show you how to use permissions for your own case
Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting
What are the permissions on the document and collection?
All I did was to add this under collection settings
What's the code for appwriteClient? Is the user logged in?
also you're passing an array for data? I think it needs to be a dictionary. I don't know the syntax for swift though
yes after logging in I first run a query to get the document, then I need to update the document, so read permission is working it just the update not working
Ohk
Still same issue
Are you self hosting? If so, what version are you on and do you have relationships?
What's your code for appwriteClient? And how many instances of that do you have?
yes self hosting, plus it does have a relationship
Does the user have update permissions on all the related documents?
It didn't have in another collection that had a relationship with, just trying it now
Thank you steven
It works now
I had question what if I don't want to give collection permission, can we use the paramters from sdk to give permission and is that temporary?
Like I don't think I should give users read and update permission from client side? Can you suggest a better way?
I haven't tried the permission parameter using sdk functions so I don't know how that works internally
Not sure what you mean
A user can only grant a permission they already have so I'm not sure what the concern is
API keys have full access
I meant can all users update a document within a collection?
Only if they're granted permissions
Recommended threads
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- How to use Sites on selfhosted appwrite
whenever I try to create a site even with template it says 404 nginx error