Yup, that's how we built it. Although it might be an idea to add a hook so you can just do it programmatically rather than via templating
Know which categories are "secret"
When you fetch the categories a user can see by privilege, is there a way of telling whether the category is visible for everyone or if they are "private"?
Is there a way I can get the privileges assigned to a user and compare those to the privileges required for a category?
I'm browsing source right now, but if anyone have the answer on the top of their head, please give me a hand to save time.
Ah... not really, since it's not quite that simple. Privileges aren't as simple as "visible to you"/"invisible to regular users", but can be customized on different user groups and even individual users.
So that said, while we could add in something like "category is visible to you but not to all registered users", that means different things for different people, since (just as an example) a forum could be completely locked down, in which case this property wouldn't mean anything at all (since all categories, if you can see them, are visible to you, but not to all registered users)
@baris Nice! Thank you so much! Exactely what I was looking for.