mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dasboard_history: security fix, added orgId filter to dashboard version lookup
This commit is contained in:
@@ -346,6 +346,9 @@ func CalculateDashboardDiff(c *middleware.Context, apiOptions dtos.CalculateDiff
|
||||
|
||||
result, err := dashdiffs.CalculateDiff(&options)
|
||||
if err != nil {
|
||||
if err == m.ErrDashboardVersionNotFound {
|
||||
return ApiError(404, "Dashboard version not found", err)
|
||||
}
|
||||
return ApiError(500, "Unable to compute diff", err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user