[Solved] listDocuments() in dart_appwrite appears to be honouring document permissions
- 0
- Self Hosted
- Databases
I'm using dart_appwrite
for a server application and have been successfully retrieving documents - for several months - from a collection that has document level permissions set. Today, while debugging a new function added to the server application, I suddenly started getting no results being returned from listDocuments()
in a function that has not been changed since the server application was deploy.
On further inspection, if I add the Any() permission to a document, listDocuments()
returns that document. Surely this is unexpected behaviour? What could be causing it?
Appwrite 1.4.8 dart_appwrite 10.1.0
listDocuments() in dart_appwrite appears to be honouring document permissions
That sounds pretty odd...are you sure the API key is valid?
It's the same key I've been using since the start of the project. I can regenerate it and try again. But with that key, and the existing document permissions, I get no results returned. If I then add Any() Read permissions to a few documents, then those get returned.
I'll regenerate the key and try again. Perhaps something has gone astray.
Well, interesting. I deleted the key and created a new one. And it works as expected. Very curious!
I'll update the topic to indicate that this is now resolved. Thanks @Steven!!
[Solved] listDocuments() in dart_appwrite appears to be honouring document permissions
Recommended threads
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...
- Use different email hosts for different ...
Hello, I have 2 projects and i want to be able to set up email templates in the projects. Both projects will have different email host configurations. I see ...