NavigationGroup

Is there a way to conditionally hide a navigationGroup?
5 Replies
ingmontoya
ingmontoyaOP10mo 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
ingmontoyaOP10mo ago
this is the error
No description
ingmontoya
ingmontoyaOP10mo ago
anyone please? up
awcodes
awcodes10mo 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
ingmontoyaOP10mo ago
thanks!
Want results from more Discord servers?
Add your server