diff --git a/pkg/services/plugindashboards/service/dashboard_updater.go b/pkg/services/plugindashboards/service/dashboard_updater.go index 488fe5a8bc2..7cf8bc8c46d 100644 --- a/pkg/services/plugindashboards/service/dashboard_updater.go +++ b/pkg/services/plugindashboards/service/dashboard_updater.go @@ -4,7 +4,6 @@ import ( "context" "fmt" - "github.com/grafana/grafana/pkg/apimachinery/identity" "github.com/grafana/grafana/pkg/bus" "github.com/grafana/grafana/pkg/infra/log" "github.com/grafana/grafana/pkg/services/accesscontrol" @@ -67,11 +66,10 @@ func (du *DashboardUpdater) updateAppDashboards() { if !pluginSetting.Enabled { continue } - ctx, _ := identity.WithServiceIdentity(context.Background(), pluginSetting.OrgID) - if pluginDef, exists := du.pluginStore.Plugin(ctx, pluginSetting.PluginID); exists { + if pluginDef, exists := du.pluginStore.Plugin(context.Background(), pluginSetting.PluginID); exists { if pluginDef.Info.Version != pluginSetting.PluginVersion { - du.syncPluginDashboards(ctx, pluginDef, pluginSetting.OrgID) + du.syncPluginDashboards(context.Background(), pluginDef, pluginSetting.OrgID) } } }