I feel like I've overlooked something small, but it's now racking my brain, this code isn't returning what I need, which is documents belonging to just this one user who's signed in.
Users are discussing an issue with the `Query.equal()` method not working as expected in a Svelte and TypeScript project using the Appwrite Cloud service.
One user suggests creating a team, adding users to it, and setting permissions on the team.
Another user confirms that this solution worked for them.
The original poster asks if they need to add the ID of another user to the permissions array of a document to give them permission to access it.
A user explains that if document security is enabled, additional permission assignment is not necessary.
The original poster asks if a regular call to get documents will automatically fetch only the ones they have permission for, without
I'll get you the versions of my environment shortly, the documents were created with the users permission, and I have document security enabled.
Are you saying that a regular call to get the documents from the database will automatically fetch only the ones I have permission to? I don't need an additional Query filter?
Bouahaza
Rank 4: Virtual Machine
May 29, 2023, 08:52
You don't need if you enable document security yes
Bouahaza
Rank 4: Virtual Machine
May 29, 2023, 08:52
And connect via client sdk
Chola
Rank 2: Process
May 29, 2023, 09:18
Great, that worked.
For me to allow another user permission to the same document, i would have to add their ID to the permissions array of the document?
Bouahaza
Rank 4: Virtual Machine
May 29, 2023, 09:19
Yes
Bouahaza
Rank 4: Virtual Machine
May 29, 2023, 09:19
You can also make a teams, add your 2 users on it, and add permission on this team