mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Fix spaces plugin list under OSS (server crash)
This commit is contained in:
parent
3e51815ed6
commit
5701168970
17
index.js
17
index.js
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user