I was about to ask for this screenshot, thanks , let me look into it
Flutter source code
Collection permission
I am trying to achieve is create by any, read by users and update by concern user
Thank you for sharing
Can you attach a screenshot of payload? It will allow us to see what permissions are actually set to
Can you once remove the permissions parameter and see what the output shows? We want to try this to be able to find out the problem that is causing this
Without permission document gets created
Hmm, maybe we remove the part about giving verified users the permissions? Since the error is 401 which might indicate the user trying to access this is not verified. Giving read permissions to all users on collection-level, and then only to verified on document-level won't have any effect; all users will be able to read it
I even tried only with update permission for user... that also leads to same error
Oh, i see, so you're saying the user trying to access this is verified for sure?
This is during creation of doc I am getting this issue
since collection have rights for any to create document
after signup i am trying to store his profile details in a collection
since that is his profile he alone need to update it
others can see those information
Hope this clarifies the flow...
At the time of creation user is not logged in
is there any way to achieve this?
I have changed permission as attached so that any can create but still issue is same. Not able to assign permission to document
I believe this might be the problem.
Imagine scenario with teams. You are not allowed to give permission to a team you are not part of.. If you could, you would be able to spam everyone on this team.
For same reason, un-authroized user cannot set permission to specific user. It would allow anyone to spam this user.
Solution to this is to make sure you are authroized first, then start creating documents that specific user should have permission to.
Ok Then I need to change flow of app... I came to this conclusion by earlier today.. Thanks for looking into it..
Recommended threads
- Edit ID of an existing collection
Hi there. Is it possible to edit an ID of an existing collection? Right now it looks impossible from AppWrite cloud at least.
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?