{{#each category_1}}
The parent is: _id
{{#each category_2}}
The parent is: parent_id
{{#each category_3}}
The parent is: parent_id
{{/each}}
{{/each}}
{{/each}}
Now you’ll need to create helpers for each category_1, category_2, category_3 for which you do a find();
I think that I understand how to find categories but where do i store the users who have permissions to se category_2 and all categories under that (cat4 + cat5…)
document is mongodb record in collection. go to meteor.com, press on guide in navigation bar I imagine. *tutorial: https://www.meteor.com/tutorials, the to do app on left.
{{#each category_1}}
The parent is: _id
{{#each category_2}} **<- How to share this category and all categories under it plus all task with a person, but if child todo og category is privat then dont share it.**
The parent is: parent_id
{{#each category_3}}
The parent is: parent_id
{{/each}}
{{/each}}
{{/each}}
category_3 helper: find({parent_id, whiteList: this.userId}). you can pass several params to query?
If is not private, I suppose {whiteList: true}, if it is private add users for whitelist. I’m unclear myself how MongoDB treats “true==something”.