[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 bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- SSL certificate generation failed even t...
Hello, I have an Appwrite Site for which I added a custom domain. However, even though the domain is verified, the SSL certificate generation is failing. It is ...
- [Self-hosted] Realtime crashes with "Mis...