Skip to content

Commit

Permalink
fix: Use IncludeMetadata option on all gRPC requests
Browse files Browse the repository at this point in the history
Signed-off-by: Oğuzhan Durgun <oguzhandurgun95@gmail.com>
  • Loading branch information
oguzhand95 committed May 15, 2023
1 parent 3b64da7 commit b304641
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ func (gc *grpcClient) CheckResourceSet(ctx context.Context, principal *Principal

if gc.opts != nil {
req.AuxData = gc.opts.auxData
req.IncludeMeta = gc.opts.includeMeta
}

result, err := gc.stub.CheckResourceSet(ctx, req)
Expand Down Expand Up @@ -407,6 +408,7 @@ func (gc *grpcClient) CheckResources(ctx context.Context, principal *Principal,

if gc.opts != nil {
req.AuxData = gc.opts.auxData
req.IncludeMeta = gc.opts.includeMeta
}

result, err := gc.stub.CheckResources(ctx, req)
Expand Down Expand Up @@ -441,6 +443,7 @@ func (gc *grpcClient) IsAllowed(ctx context.Context, principal *Principal, resou

if gc.opts != nil {
req.AuxData = gc.opts.auxData
req.IncludeMeta = gc.opts.includeMeta
}

result, err := gc.stub.CheckResources(ctx, req)
Expand Down

0 comments on commit b304641

Please sign in to comment.