mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
parent
dea2e5d743
commit
fdb06c7c10
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user