mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:32:24 +08:00
Identity: remove GetTypedID (#91745)
This commit is contained in:
@ -35,8 +35,7 @@ func (m *UserHeaderMiddleware) applyUserHeader(ctx context.Context, h backend.Fo
|
||||
}
|
||||
|
||||
h.DeleteHTTPHeader(proxyutil.UserHeaderName)
|
||||
namespace, _ := reqCtx.SignedInUser.GetTypedID()
|
||||
if namespace != identity.TypeAnonymous {
|
||||
if !identity.IsIdentityType(reqCtx.SignedInUser.GetID(), identity.TypeAnonymous) {
|
||||
h.SetHTTPHeader(proxyutil.UserHeaderName, reqCtx.SignedInUser.GetLogin())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user