Sorry if my title or question is unclear. I lack the vocabulary to formulate it properly.
I've got a classical tree structure with several layers. I have to manage authorization for each user, as not every user has access to all elements, so each user has their own view of the same tree.
What is the best way to store this kind of tree?
Should I store all the tree and use booleans to know if each user has access to each element? Or should I only store an array of elements? Are there any alternatives?
In this case, readability is more important than pure performance.