Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Kallol Roy <[email protected]>
  • Loading branch information
kalroy committed Dec 11, 2024
1 parent ec3be07 commit ab89a9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/authz-service/engine/opa/opa.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,11 @@ func (s *State) ProjectsAuthorized(
resource engine.Resource,
projects engine.Projects) ([]string, error) {

subs := make(ast.Array, len(subjects))
subs := make([]*ast.Term, len(subjects))
for i, sub := range subjects {
subs[i] = ast.NewTerm(ast.String(sub))
}
projs := make(ast.Array, len(projects))
projs := make([]*ast.Term, len(projects))
for i, proj := range projects {
projs[i] = ast.NewTerm(ast.String(proj))
}
Expand Down

0 comments on commit ab89a9e

Please sign in to comment.