Hide Apps from User

Hello guys,

I was developing a plugin to show/hide apps. It mainly works, but some apps don't dissapear from side bar, like Machine Learning ('ml'). This is my "pseudo" code:

In server side:
_.forEach(server.getUiNavLinks(), (UiNavLink) => UiNavLink._hidden=true); // This will hide all UiNavLinks

In hacks:
chrome.getNavLinkById('ml').hidden = true;

Hi koyarsan

Before you continue that way, just wanted to ask if you aware that you can enable/disable features based on user privileges with Kibana spaces:

https://www.elastic.co/guide/en/kibana/master/xpack-spaces.html#spaces-control-user-access

Best,
Matthias