fix: remove the incorrect RBAC rule merging logic (#6209)

Signed-off-by: hongming <coder.scala@gmail.com>
This commit is contained in:
hongming
2024-09-26 16:13:18 +08:00
committed by GitHub
parent e50de15ec9
commit 083927137d
5 changed files with 11 additions and 8 deletions

View File

@@ -157,8 +157,7 @@ func (h *Helper) AggregationRole(ctx context.Context, ruleOwner RuleOwner, recor
if !cover {
needUpdate = true
newRule := append(ruleOwner.GetRules(), uncovered...)
squashedRules := SquashRules(len(newRule), newRule)
ruleOwner.SetRules(squashedRules)
ruleOwner.SetRules(newRule)
}
if !templateNamesEqual {