Skip to content

Commit

Permalink
[Alerting][Discover] Hide Alerts menu item when no access to Stack Ma…
Browse files Browse the repository at this point in the history
…nagement (#135655) (#135690)

(cherry picked from commit 1b3c4e4)

Co-authored-by: Julia Rechkunova <julia.rechkunova@elastic.co>
  • Loading branch information
kibanamachine and jughosta committed Jul 5, 2022
1 parent 53638b6 commit 7513eeb
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -183,7 +183,10 @@ export const getTopNavLinks = ({
...(services.capabilities.advancedSettings.save ? [options] : []),
newSearch,
openSearch,
...(services.triggersActionsUi ? [alerts] : []),
...(services.triggersActionsUi &&
services.capabilities.management?.insightsAndAlerting?.triggersActions
? [alerts]
: []),
shareSearch,
inspectSearch,
...(services.capabilities.discover.save ? [saveSearch] : []),
Expand Down

0 comments on commit 7513eeb

Please sign in to comment.