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
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...