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
This commit is contained in:
bergquist 2017-02-22 13:56:04 +01:00
parent dea2e5d743
commit fdb06c7c10

View File

@ -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);