Skip to content

Commit

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

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
ogupte and kibanamachine authored Jan 6, 2021
1 parent 1097e31 commit 014c92a
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 014c92a

Please sign in to comment.