I want to make it s.t. a user can see a document only if he created it AND he has a "subscriber" label.
Here's my current setup:
- Collection-level permissions: only users with with the "subscriber" label can create documents. No other permissions are given.
- Document-level permissions: when creating a document, I pass the following permissions array: `[ Permission.read(Role.label('subscriber')), Permission.read(Role.user(userId)), Permission.update(Role.label('subscriber')), Permission.update(Role.user(userId)), Permission.delete(Role.label('subscriber')), Permission.delete(Role.user(userId)),
]`
Yet it doesn't work. It works as if it's OR operator between the permissions, not AND.
What I did: researched documentation, watched official videos, tried to change this setup. Probably I'm missing something obvious. Please help.
Recommended threads
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...
- How to display images from storage
I tried the link above, but it returns the error “`Please upgrade to a higher plan.`” I don’t need Transformations at the moment, I just want to display the ima...