Hey Appwriters. I'm keen to tap into your database expertise.
In my app I have nested collections:
Canvas (think of it like Trello) Cards (just like Trello cards)
For a multi-tenant app, one team shouldn't see another teams Canvas or Cards. So I started thinking document permissions is the way to go. But I'm quickly falling down a rabbit hole of security concerns.
Let's imagine two teams, two users on each, an admin and a member.
The admin can invite others and the member can not.
So the member shouldn't be allowed to change document permissions.
If the admin invites a user to a canvas from outside of the team, they can update the canvas document permissions, but then we have to update all the cards too.
Can you see where my dilemma is?
I am sure the simple answer is "build a million functions" but it occurs to me that where there is a parent/child relationship, the child could inherit the secrity permissions of the parent.
That's my thinking, but if you've built an app with real time DB and figured out some good architecture for this kind of deeply nested data structure, I'd be greatful for your guidance.
Thanks :appwritecheers:
Recommended threads
- Appwrite project paused
I have github student account. The auth has been paused however the database is working fine. I cant see any option to resume from my console panel. It is just ...
- MongoDb Database Breaks integer[] & bigi...
I've got a table with the below column created. When I try to insert the value `[-3408048000]` into it, the dart sdk cloud function call is successful (no error...
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...