Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matas-cast committed Jan 24, 2025
1 parent 2fcc148 commit 12cd81b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ func init() {
if !ok {
return nil
}

policyRules = cr.Rules
} else {
policyRules = rb.Rules
}
policyRules = rb.Rules

for _, rule := range policyRules {
for _, verb := range rule.Verbs {
if slices.Contains(privescVerbs, verb) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ func init() {
}

subjects = crb.Subjects
} else {
subjects = rb.Subjects
}
subjects = rb.Subjects

for _, subject := range subjects {
if subject.Kind == "Group" && subject.Name == "system:masters" {
Expand Down

0 comments on commit 12cd81b

Please sign in to comment.