From 0009506829ee28fb195184c2869133b13b71a9e1 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:56:20 +0100 Subject: [PATCH] [v9.5.x] Provisioning: Fix provisioning issues with legacy alerting and data source permissions (#67377) Provisioning: Fix provisioning issues with legacy alerting and data source permissions (#67308) extend provisioner permissions (cherry picked from commit 33034280836b925b25f6135c9db3f475795af626) Co-authored-by: Ieva --- pkg/services/dashboards/service/dashboard_service.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/dashboards/service/dashboard_service.go b/pkg/services/dashboards/service/dashboard_service.go index d6dd003dde1..1ead62e9ea8 100644 --- a/pkg/services/dashboards/service/dashboard_service.go +++ b/pkg/services/dashboards/service/dashboard_service.go @@ -13,6 +13,7 @@ import ( "github.com/grafana/grafana/pkg/services/accesscontrol" "github.com/grafana/grafana/pkg/services/alerting" "github.com/grafana/grafana/pkg/services/dashboards" + "github.com/grafana/grafana/pkg/services/datasources" "github.com/grafana/grafana/pkg/services/featuremgmt" "github.com/grafana/grafana/pkg/services/folder" "github.com/grafana/grafana/pkg/services/guardian" @@ -29,6 +30,7 @@ var ( {Action: dashboards.ActionFoldersWrite, Scope: dashboards.ScopeFoldersAll}, {Action: dashboards.ActionDashboardsCreate, Scope: dashboards.ScopeFoldersAll}, {Action: dashboards.ActionDashboardsWrite, Scope: dashboards.ScopeFoldersAll}, + {Action: datasources.ActionRead, Scope: datasources.ScopeAll}, } // DashboardServiceImpl implements the DashboardService interface _ dashboards.DashboardService = (*DashboardServiceImpl)(nil)