NavigationGroup

Is there a way to conditionally hide a navigationGroup?
5 Replies
ingmontoya
ingmontoya5mo ago
context: I'm using model policies to hide/show my resources, but I have one navigationGroup that groups several childItems, the problem is when a user doesn't have any permissions to see any of those childItems, I got an error. So I need to somehow hide the navigationGroup as well.
ingmontoya
ingmontoya5mo ago
this is the error
No description
ingmontoya
ingmontoya5mo ago
anyone please? up
awcodes
awcodes5mo ago
Nav groups have no context of authorization. So your best bet would be to build a custom navigation using the builder where you can check for visible items before returning the navigation builder instance.
ingmontoya
ingmontoya5mo ago
thanks!