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
- How to use appwrite types
I am using appwrite types --language ts ./types to generate the types yielding something like: ``` import type { Models } from 'node-appwrite'; // This file i...
- Migrating functions from between regions...
Hi Appwrite team, I am running into rate limits where only part of my 77 functions are being successfully migrated (only 50 went through) via the Migration tab ...
- Internal server Error when trying to exe...
When executing the function locally it works fine, but when the function is deployed I get this error: ```requests.exceptions.HTTPError: 500 Server Error: Inter...