mirror of
https://github.com/grafana/grafana.git
synced 2025-07-31 17:32:42 +08:00
fix: viewer role fix, fixes #8976
This commit is contained in:
@ -222,7 +222,8 @@ func (hs *HttpServer) registerRoutes() {
|
||||
|
||||
// Dashboard
|
||||
r.Group("/dashboards", func() {
|
||||
r.Combo("/db/:slug").Get(GetDashboard).Delete(DeleteDashboard)
|
||||
r.Get("/db/:slug", GetDashboard)
|
||||
r.Delete("/db/:slug", reqEditorRole, DeleteDashboard)
|
||||
|
||||
r.Get("/id/:dashboardId/versions", wrap(GetDashboardVersions))
|
||||
r.Get("/id/:dashboardId/versions/:id", wrap(GetDashboardVersion))
|
||||
|
Reference in New Issue
Block a user