Skip to content

Commit

Permalink
Merge pull request #72 from authzed/full-consistency
Browse files Browse the repository at this point in the history
Full consistency
  • Loading branch information
ecordell authored Nov 20, 2023
2 parents b6e97eb + d9e1aad commit 0c8ad66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/authz/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func runAllMatchingChecks(ctx context.Context, matchingRules []*rules.RunnableRu
}
req := &v1.CheckPermissionRequest{
Consistency: &v1.Consistency{
Requirement: &v1.Consistency_MinimizeLatency{MinimizeLatency: true},
Requirement: &v1.Consistency_FullyConsistent{FullyConsistent: true},
},
Resource: &v1.ObjectReference{
ObjectType: rel.ResourceType,
Expand Down
2 changes: 1 addition & 1 deletion pkg/authz/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func filterList(ctx context.Context, client v1.PermissionsServiceClient, filter

req := &v1.LookupResourcesRequest{
Consistency: &v1.Consistency{
Requirement: &v1.Consistency_MinimizeLatency{MinimizeLatency: true},
Requirement: &v1.Consistency_FullyConsistent{FullyConsistent: true},
},
ResourceObjectType: filter.Rel.ResourceType,
Permission: filter.Rel.ResourceRelation,
Expand Down

0 comments on commit 0c8ad66

Please sign in to comment.