[release-4.1] fix: remove the incorrect RBAC rule merging logic (#6210)
fix: remove the incorrect RBAC rule merging logic Signed-off-by: hongming <coder.scala@gmail.com> Co-authored-by: hongming <coder.scala@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f0ab0b9856
commit
3187fcc173
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user