Rank 5: Hypervisor
https://appwrite.io/docs/permissions
You can read about permissions here
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
https://appwrite.io/docs/permissions
You can read about permissions here
Rank 5: Hypervisor
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?
Rank 2: Process
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
Rank 2: Process
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
Rank 2: Process
Ohk
Rank 2: Process
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?
Rank 2: Process
yes self hosting, plus it does have a relationship
Does the user have update permissions on all the related documents?
Rank 2: Process
It didn't have in another collection that had a relationship with, just trying it now
Rank 2: Process
Thank you steven
Rank 2: Process
It works now
Rank 2: Process
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?
Rank 2: Process
Like I don't think I should give users read and update permission from client side? Can you suggest a better way?
Rank 2: Process
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
Rank 2: Process
I meant can all users update a document within a collection?
Only if they're granted permissions