SupportBundles: Access control guards (#61914)

* rename routes and fix access control for support bundles

* AccessControl: Hide menu if not authorized

* AccessControl: Add AC guards for create and delete

* lint
This commit is contained in:
Jo
2023-01-23 16:23:20 +00:00
committed by GitHub
parent c5610450b2
commit 1037ef28a9
14 changed files with 55 additions and 20 deletions

View File

@ -121,9 +121,6 @@ func (hs *HTTPServer) registerRoutes() {
}
r.Get("/styleguide", reqSignedIn, hs.Index)
r.Get("/admin/support-bundles", reqGrafanaAdmin, hs.Index)
r.Get("/admin/support-bundles/create", reqGrafanaAdmin, hs.Index)
r.Get("/live", reqGrafanaAdmin, hs.Index)
r.Get("/live/pipeline", reqGrafanaAdmin, hs.Index)
r.Get("/live/cloud", reqGrafanaAdmin, hs.Index)