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) (#87420)

Co-authored-by: Kibana Machine <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
ogupte and kibanamachine authored Jan 6, 2021
1 parent 100bd91 commit 63de344
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 63de344

Please sign in to comment.