[CLOSED] Appwrite PHP SDK Document Permissions: Setting Read and Write Access
- 1
- Databases
- Functions
- Cloud
Would you please try removing your custom status codes?
I mean that after I send the payload in json format and execute it via appwrite console, if failes
Still failes
can you show the data you are sending to the function in the payload?
It works now, but is there any problem if after creating the document with the owner attribute different from my userId, I can delete it in Appwrite manually?
sure! The console user has full access to all the data
So should I change the function? Wont be any problem if I do it after creating the document with the owners attribute being different from my user id, right?
Are you working with the original poster on the same code?
No but its almost identical
Iβve been using the same method
please create a new post so that discussions don't get mixed up between two people
Im sorry its me sidney. Its my phone account. I switched devices and i forgot to mention it
ahhh ok
sooooo, honestly, i didn't quite understand this question
What is the right method to add permissions so only the owner(attribute of the document) can delete and update the document. I am using php sdk to create a new document.
you already have it so what's the problem?
Yes but after I execute the function in appwrite console, and sending the json payload with the owner attribute differente from my user id, I can still delete it. I wante to know if this is a problem or not?
you can delete it using the Appwrite Console?
Not in console, just in Appwrite at documents
what do you mean? maybe share a screenshot?
This is the Appwrite Console and you're logged in as a Console user who has full rights to everything in the project. This is not a problem
Okay, I just wanted to be sure. Thnks
[CLOSED] Appwrite PHP SDK Document Permissions: Setting Read and Write Access
Recommended threads
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, itβs mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...