Skip to content

Commit

Permalink
Use the correct arg to get the specified context in the FGA query com…
Browse files Browse the repository at this point in the history
…mand
  • Loading branch information
kkajla12 committed Aug 7, 2024
1 parent 5d95c18 commit c52591e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/fga.go
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,9 @@ var queryCmd = &cobra.Command{
}
var policyContext map[string]interface{}
if len(args) > 1 {
err := json.Unmarshal([]byte(args[3]), &policyContext)
err := json.Unmarshal([]byte(args[1]), &policyContext)
if err != nil {
return errors.Errorf("invalid context: %s", args[3])
return errors.Errorf("invalid context: %s", args[1])
}
}

Expand Down

0 comments on commit c52591e

Please sign in to comment.