Skip to content

Commit c0eeb86

Browse files
Closes #87026 by ensuring the user also has save privileges for APM (#87343)
Co-authored-by: Kibana Machine <[email protected]>
1 parent 31c667a commit c0eeb86

File tree

1 file changed

+2
-1
lines changed
  • x-pack/plugins/apm/public/application/action_menu

1 file changed

+2
-1
lines changed

x-pack/plugins/apm/public/application/action_menu/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export function ActionMenu() {
2828
canSaveAlerts,
2929
canReadAnomalies,
3030
} = getAlertingCapabilities(plugins, capabilities);
31+
const canSaveApmAlerts = capabilities.apm.save && canSaveAlerts;
3132

3233
function apmHref(path: string) {
3334
return getAPMHref({ basePath, path, search });
@@ -52,7 +53,7 @@ export function ActionMenu() {
5253
<AlertingPopoverAndFlyout
5354
basePath={basePath}
5455
canReadAlerts={canReadAlerts}
55-
canSaveAlerts={canSaveAlerts}
56+
canSaveAlerts={canSaveApmAlerts}
5657
canReadAnomalies={canReadAnomalies}
5758
includeTransactionDuration={serviceName !== undefined}
5859
/>

0 commit comments

Comments
 (0)