From a8ceec0ed9372accd3fd857df2f63acacfd6d99f Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Mon, 14 Nov 2022 14:25:41 -0500 Subject: [PATCH] [v9.2.x] Snapshots: Allow user with viewer permissions to delete own snapshots (#58715) Snapshots: Allow user with viewer permissions to delete own snapshots (#58572) (cherry picked from commit 59d2cf2ff790ccc55b82902b66b241c8d809dcb2) Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com> --- pkg/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/api.go b/pkg/api/api.go index 636127a2131..05fcdbc86a9 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -650,5 +650,5 @@ func (hs *HTTPServer) registerRoutes() { r.Get("/api/snapshot/shared-options/", reqSignedIn, GetSharingOptions) r.Get("/api/snapshots/:key", routing.Wrap(hs.GetDashboardSnapshot)) r.Get("/api/snapshots-delete/:deleteKey", reqSnapshotPublicModeOrSignedIn, routing.Wrap(hs.DeleteDashboardSnapshotByDeleteKey)) - r.Delete("/api/snapshots/:key", reqEditorRole, routing.Wrap(hs.DeleteDashboardSnapshot)) + r.Delete("/api/snapshots/:key", reqSignedIn, routing.Wrap(hs.DeleteDashboardSnapshot)) }