Skip to content

Commit

Permalink
Fix watcher capabilities check
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Feb 24, 2021
1 parent 8d5d98d commit a7288f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/watcher/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class WatcherUIPlugin implements Plugin<void, void, Dependencies, any> {
// The race condition still exists, but it will result in the item rendering when it shouldn't
// (e.g. on a license it's not available for), instead of *not* rendering when it *should*,
// which is a less frustrating UX.
if (valid && capabilities.management.admin?.watcher === true) {
if (valid && capabilities.management.insightsAndAlerting?.watcher === true) {
watcherESApp.enable();
} else {
watcherESApp.disable();
Expand Down

0 comments on commit a7288f6

Please sign in to comment.