Closed xgp closed 1 year ago
For Dashboard there are two checks: featureFlags?.enableDashboard !== false || !hasOrgAccess,
My thoughts were if the featureFlag disables view, but you still have org access, you should see it. If you don't have org access and the dash is disabled, then it shouldn't show.
For Switch Organization, I added something to make the menu item only show when you have more than 1 org OR you have the right Realm roles. That way even if you only have 1 realm role you can still see the switcher to see "Global". Let me know if I got that right.
Visibility of menu items should be based on permissions.