From 014c92aab8833ccb20cd113670257d562fe1cf70 Mon Sep 17 00:00:00 2001 From: Oliver Gupte Date: Wed, 6 Jan 2021 06:40:27 -0800 Subject: [PATCH] Closes #87026 by ensuring the user also has save privileges for APM (#87343) (#87421) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/apm/public/application/action_menu/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/plugins/apm/public/application/action_menu/index.tsx b/x-pack/plugins/apm/public/application/action_menu/index.tsx index 438eb2bca7f24..32359e722e001 100644 --- a/x-pack/plugins/apm/public/application/action_menu/index.tsx +++ b/x-pack/plugins/apm/public/application/action_menu/index.tsx @@ -28,6 +28,7 @@ export function ActionMenu() { canSaveAlerts, canReadAnomalies, } = getAlertingCapabilities(plugins, capabilities); + const canSaveApmAlerts = capabilities.apm.save && canSaveAlerts; function apmHref(path: string) { return getAPMHref({ basePath, path, search }); @@ -52,7 +53,7 @@ export function ActionMenu() {