diff --git a/pkg/services/licensing/oss.go b/pkg/services/licensing/oss.go index ae47a21191b..821d05294a6 100644 --- a/pkg/services/licensing/oss.go +++ b/pkg/services/licensing/oss.go @@ -55,6 +55,10 @@ func ProvideService(cfg *setting.Cfg, hooksService *hooks.HooksService) *OSSLice HooksService: hooksService, } l.HooksService.AddIndexDataHook(func(indexData *dtos.IndexViewData, req *models.ReqContext) { + if !req.IsGrafanaAdmin { + return + } + if adminNode := indexData.NavTree.FindById(navtree.NavIDAdmin); adminNode != nil { adminNode.Children = append(adminNode.Children, &navtree.NavLink{ Text: "Stats and license",