Adds signed in user to backend v2 plugins requests (#22584)

closes #12043
This commit is contained in:
Carl Bergquist
2020-03-06 14:37:36 +01:00
committed by GitHub
parent c73a0007c7
commit 1dcfaf25fc
7 changed files with 42 additions and 8 deletions

View File

@ -208,6 +208,7 @@ func (m *manager) CallResource(config PluginConfig, c *models.ReqContext, path s
URL: clonedReq.URL.String(),
Headers: clonedReq.Header,
Body: body,
User: c.SignedInUser,
}
stream, err := p.callResource(clonedReq.Context(), req)