Skip to content

Commit

Permalink
fix: add consistency to lookup resource
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanarya0 committed Jun 24, 2024
1 parent ce3fca3 commit c09e507
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/store/spicedb/relation_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ func (r RelationRepository) DeleteSubjectRelations(ctx context.Context, resource

func (r RelationRepository) LookupResources(ctx context.Context, resourceType, permission, subjectType, subjectID string) ([]string, error) {
request := &authzedpb.LookupResourcesRequest{
Consistency: &authzedpb.Consistency{
Requirement: &authzedpb.Consistency_FullyConsistent{
FullyConsistent: true,
},
},
ResourceObjectType: resourceType,
Permission: permission,
Subject: &authzedpb.SubjectReference{
Expand Down

0 comments on commit c09e507

Please sign in to comment.