Skip to content

Commit

Permalink
Fix timing issue with synchronizing the Kibana privileges to ES (#52214)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobelb authored Dec 9, 2019
1 parent ac0f44e commit 134e70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/legacy/plugins/security/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ export const security = (kibana) => new kibana.Plugin({
}

watchStatusAndLicenseToInitialize(server.plugins.xpack_main, this, async () => {
if (securityPlugin.__legacyCompat.license.getFeatures().allowRbac) {
const xpackInfo = server.plugins.xpack_main.info;
if (xpackInfo.isAvailable() && xpackInfo.feature('security').isEnabled()) {
await securityPlugin.__legacyCompat.registerPrivilegesWithCluster();
}
});
Expand Down

0 comments on commit 134e70e

Please sign in to comment.