Fix spaces plugin list under OSS (server crash)

This commit is contained in:
Jesús Ángel 2019-08-13 15:09:52 +02:00
parent 3e51815ed6
commit 5701168970

View File

@ -40,13 +40,16 @@ export default kibana =>
init(server, options) {
// Kibana spaces locker
const xpackMainPlugin = server.plugins.xpack_main;
xpackMainPlugin.registerFeature({
id: 'wazuh',
name: 'Wazuh',
app: ['wazuh','kibana','elasticsearch'],
navLinkId: 'wazuh',
privileges: {}
});
if (xpackMainPlugin) {
xpackMainPlugin.registerFeature({
id: 'wazuh',
name: 'Wazuh',
app: ['wazuh', 'kibana', 'elasticsearch'],
navLinkId: 'wazuh',
privileges: {}
});
}
return initApp(server, options);
}