I have two collections "projects" (P) and "campaigns" (C).
They are configured as a two-way relationship / many to one: P can have many C. C can have one P.
Authenticated user (the one i am testing with) has read access for the P as well as for the C items he creates (document security layer).
I am using the client SDK to query. Double checked all IDs and I nearly do the same kind of query (beside of some query params) as the appwrite backend, when retrieving P items.
When I only have P but no (related) C everything just loads fine. Once I add a related C to a P, than the query to retrieve all items fails.
I get back a 401 Unauthorized from the XHR request and appwrite container tells me "[Error] Message: The current user is not authorized to perform the requested action.".
I know from your docs, that there must be sufficient access right to all related documents in a relationship. But that kind of require is met and tripple checked.
Looking forward for some help. Already spent hours of debugging and run out of ideas. Thanks!