Hello guys, I create documents and provide an array of permissions but when another user logs in and loads the data the second user can load the data from the first user. I use following code:
final response = await databases.createDocument(
databaseId: databaseId,
collectionId: collectionId,
documentId: ID.unique(),
data: data.toMap(),
permissions: [
Permission.read(Role.user(user.$id)),
Permission.write(Role.user(user.$id)),
Permission.update(Role.user(user.$id)),
Permission.delete(Role.user(user.$id)),
],
);
In the web console i can see that the document has the right flag with user:<userId> Still do not understand why the second user can see the data. Do you have an idea what I am missing? Kind regards
Recommended threads
- storage copy file?
hey everyone, does anyone know if we can copy a file in storage. I have some base files that i want to copy for each user based on what they choose. I couldnt f...
- [BUG] The cloud cannot be migrated to se...
The cloud cannot be migrated to self-hosting. The content of this post is exactly the same as [issue 11068](https://github.com/appwrite/appwrite/issues/11068) ...
- Rate límit reset
I've made an error in the code by not setting a limit on how much rows should i get per request because i was working with a small db for testing. Last night Iv...