Skip to content

Commit

Permalink
Fix: Checker.checkRelation wasn't setting the subject ID
Browse files Browse the repository at this point in the history
As a result it was getting way more relations back.
  • Loading branch information
ronenh committed Dec 10, 2024
1 parent 84a39f3 commit a5913cb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions graph/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ func (c *Checker) checkRelation(params *relation) (checkStatus, error) {
}

switch {
case step.IsDirect():
req.SubjectId = params.sid.String()
case step.IsWildcard():
req.SubjectId = "*"
case step.IsSubject():
Expand Down

0 comments on commit a5913cb

Please sign in to comment.