WithServicePrivileges => ServicePrivileges

This commit is contained in:
Ben Toogood
2020-03-31 12:57:38 +01:00
parent d659e435c6
commit e0c7f48d20
2 changed files with 3 additions and 3 deletions

View File

@@ -133,7 +133,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R
// if the caller specifies using service privelages, and the client
// has auth set, override the authorization header
if opts.WithServicePrivileges && g.opts.Auth != nil && g.opts.Auth.Options().Token != nil {
if opts.ServicePrivileges && g.opts.Auth != nil && g.opts.Auth.Options().Token != nil {
t := g.opts.Auth.Options().Token
header["authorization"] = auth.BearerScheme + t.Token
}