
Hi all,
How to set up collection and document permissions if I want,
- Every user can create read and update their own documents in that collection,
- Each user can only see their own documents in that collection,
- User that has special label like "admin" can see all documents in that collection and delete also.
TL;DR
Developers are wondering how to set up permissions for a collection:
- Regular users can create, read, and update their own documents.
- Regular users can only see their own documents.
- Admin users can see and delete all documents.
Solution: Implement role-based access control where regular users have restricted permissions and admin users have elevated permissions.Recommended threads
- queries.map is not a function
Query.createdBefore doesnt work ``` tables.updateRows({ databaseId: process.env.APPWRITE_DATABASE_ID, tableId: process.env.APPWRITE_TABLE_ID, ...
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Realtime integration with SSR auth
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-...
