Skip to content

Commit

Permalink
Closes #87026 by ensuring the user also has save privileges for APM (#…
Browse files Browse the repository at this point in the history
…87343)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
ogupte and kibanamachine committed Jan 6, 2021
1 parent fbc0d59 commit 7bb3262
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/plugins/apm/public/application/action_menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand All @@ -52,7 +53,7 @@ export function ActionMenu() {
<AlertingPopoverAndFlyout
basePath={basePath}
canReadAlerts={canReadAlerts}
canSaveAlerts={canSaveAlerts}
canSaveAlerts={canSaveApmAlerts}
canReadAnomalies={canReadAnomalies}
includeTransactionDuration={serviceName !== undefined}
/>
Expand Down

0 comments on commit 7bb3262

Please sign in to comment.