Skip to content

Commit 315e1f6

Browse files
authored
Use legacy compat security
1 parent 497e71f commit 315e1f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • x-pack/plugins/snapshot_restore/server

x-pack/plugins/snapshot_restore/server/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export class SnapshotRestoreServerPlugin implements Plugin<void, void, any, any>
8484
router,
8585
license: this.license,
8686
config: {
87-
isSecurityEnabled: security !== undefined && security.license.isEnabled(),
87+
isSecurityEnabled: security !== undefined && security.__legacyCompat.license.isEnabled(),
8888
isCloudEnabled: cloud !== undefined && cloud.isCloudEnabled,
8989
isSlmEnabled: pluginConfig.slm_ui.enabled,
9090
},

0 commit comments

Comments
 (0)