From fc5e1dbd15a9f07ccda49347c1e6e7671aa45a42 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 2 Aug 2021 09:39:31 +0100 Subject: [PATCH] put alerting admin page under ngalert flag (#37437) (#37439) (cherry picked from commit 73d36d5521090e224c4490eafd492578c5f93f68) Co-authored-by: Domas --- pkg/api/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/index.go b/pkg/api/index.go index 07b900b7988..3941af970ff 100644 --- a/pkg/api/index.go +++ b/pkg/api/index.go @@ -227,7 +227,7 @@ func (hs *HTTPServer) getNavTree(c *models.ReqContext, hasEditPerm bool) ([]*dto }) } } - if c.OrgRole == models.ROLE_ADMIN { + if c.OrgRole == models.ROLE_ADMIN && hs.Cfg.IsNgAlertEnabled() { alertChildNavs = append(alertChildNavs, &dtos.NavLink{ Text: "Admin", Id: "alerting-admin", Url: hs.Cfg.AppSubURL + "/alerting/admin", Icon: "cog",