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:
@@ -65,6 +65,7 @@ func CalculateDiff(options *Options) (*Result, error) {
|
||||
baseVersionQuery := models.GetDashboardVersionQuery{
|
||||
DashboardId: options.Base.DashboardId,
|
||||
Version: options.Base.Version,
|
||||
OrgId: options.OrgId,
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(&baseVersionQuery); err != nil {
|
||||
@@ -74,6 +75,7 @@ func CalculateDiff(options *Options) (*Result, error) {
|
||||
newVersionQuery := models.GetDashboardVersionQuery{
|
||||
DashboardId: options.New.DashboardId,
|
||||
Version: options.New.Version,
|
||||
OrgId: options.OrgId,
|
||||
}
|
||||
|
||||
if err := bus.Dispatch(&newVersionQuery); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user