From ab89a9eed017b031e2d8d3dbbd3fc6da9036d49b Mon Sep 17 00:00:00 2001 From: Kallol Roy Date: Wed, 11 Dec 2024 13:32:41 +0530 Subject: [PATCH] fix build issue Signed-off-by: Kallol Roy --- components/authz-service/engine/opa/opa.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/authz-service/engine/opa/opa.go b/components/authz-service/engine/opa/opa.go index 5dd7ccde7cf..35e6ec15ae8 100644 --- a/components/authz-service/engine/opa/opa.go +++ b/components/authz-service/engine/opa/opa.go @@ -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)) }