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
- Appwrite - Github student plan payment
Even though I have the GitHub Student package, I received a notification saying I would be switched to a pay-as-you-go plan. (It said that I could use AppWrite ...
- SMS - Github Student Pack
I have a project on Appwrite Github Student Pack but unable to send any message as I get error: "Phone authentication limit for your organization has exceeded. ...
- Relationship data Not showing on update ...
Version : 1.9.0 OS/System : Windows10/Docker Database : MongoDB Clean Zero Installation The first thing I did in the testing process was create a category and...