[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
- TOO_MANY_REDIRECTS after temporarily ena...
I am losing my mind over this, I enabled this setting because I was having issues with sites not making links with https. I enabled it, ran into issues, so I di...
- listRows result parsing issue
I'm using Appwrite Dart SDK "24.2.0". When I perform a listRows call in dart, I have this reponse in JSON: in " Future<models.RowList> listRows()" { "total" :...
- Index for combination of columns
How am i suppposed to apply index so that combination of two columns alwasy remain unique in appwrite table though console