Skip to content

Commit

Permalink
fix: fix CheckPermission API make fully_consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
Manish Dangi committed Jun 18, 2024
1 parent b2182b8 commit 35be1b2
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 @@ -108,6 +108,11 @@ func (r RelationRepository) Check(ctx context.Context, rel relation.Relation, ac
}

request := &authzedpb.CheckPermissionRequest{
Consistency: &authzedpb.Consistency{
Requirement: &authzedpb.Consistency_FullyConsistent{
FullyConsistent: true,
},
},
Resource: relationship.Resource,
Subject: relationship.Subject,
Permission: act.ID,
Expand Down

0 comments on commit 35be1b2

Please sign in to comment.