NavigationGroup

Is there a way to conditionally hide a navigationGroup?
5 Replies
ingmontoya
ingmontoyaOP12mo 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
ingmontoyaOP12mo ago
this is the error
No description
ingmontoya
ingmontoyaOP12mo ago
anyone please? up
awcodes
awcodes12mo 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
ingmontoyaOP11mo ago
thanks!

Did you find this page helpful?