From 531dea3a7ae94b505d18a6730b78f504c752967e Mon Sep 17 00:00:00 2001 From: yuvalavra Date: Tue, 7 Nov 2023 12:35:58 +0200 Subject: [PATCH] fix issue issue where user violations weren't evaluted when group violations where disabled --- pkg/eval/eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/eval/eval.go b/pkg/eval/eval.go index cbe508f..c32385e 100644 --- a/pkg/eval/eval.go +++ b/pkg/eval/eval.go @@ -303,7 +303,7 @@ func removedUnneededIdentities(collectResult *collect.CollectResult, evalConfig collectResult.Users = []collect.NamedEntry{} } if !evalConfig.GroupViolations { - collectResult.Users = []collect.NamedEntry{} + collectResult.Groups = []collect.NamedEntry{} } }