From fdb06c7c1033eb5dd1b3e1387e123a68de5da9fe Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 22 Feb 2017 13:56:04 +0100 Subject: [PATCH] sharing: set orgId as query parameter when sharing a dashboard to make sure an user opens the dashboard in the correct org, orgId will always be added when sharing a dashboard. if the users current orgId doesnt match the query parameter grafana will change it and redirect the user. closes #1613 --- public/app/features/dashboard/shareModalCtrl.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/app/features/dashboard/shareModalCtrl.js b/public/app/features/dashboard/shareModalCtrl.js index 54b09fbc6d2..d4075c1e641 100644 --- a/public/app/features/dashboard/shareModalCtrl.js +++ b/public/app/features/dashboard/shareModalCtrl.js @@ -51,6 +51,7 @@ function (angular, _, $, moment, require, config) { var range = timeSrv.timeRange(); params.from = range.from.valueOf(); params.to = range.to.valueOf(); + params.orgId = config.bootData.user.orgId; if ($scope.options.includeTemplateVars) { templateSrv.fillVariableValuesForUrl(params);