mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:02:45 +08:00
CI: Bump golangci-lint to 2.0.2 (#103572)
This commit is contained in:

committed by
GitHub

parent
b58b6e828e
commit
757be6365a
@ -32,8 +32,8 @@ func (m *UserHeaderMiddleware) applyUserHeader(ctx context.Context, h backend.Fo
|
||||
}
|
||||
|
||||
h.DeleteHTTPHeader(proxyutil.UserHeaderName)
|
||||
if !reqCtx.SignedInUser.IsIdentityType(claims.TypeAnonymous) {
|
||||
h.SetHTTPHeader(proxyutil.UserHeaderName, reqCtx.SignedInUser.GetLogin())
|
||||
if !reqCtx.IsIdentityType(claims.TypeAnonymous) {
|
||||
h.SetHTTPHeader(proxyutil.UserHeaderName, reqCtx.GetLogin())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user