[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
- Get all Documents and Expanded Relations...
I have multiple (quite small) collections that have many-to-many relationships. How can we return all documents and expanded relationship for a specific collec...
- Functions Failing Due to Installed Depen...
Hi team! Before anything, I am on the so far while we're in the planning phase of the app, and will be upgrading to pro soon. If there's a possibility that this...
- The new Bulk API and Realtime updates
It seems that the new Bulk API doesn't actually send realtime updates which is making a huge problem for me. I also wanted to know different is it deleting mul...
