Skip to content

Commit

Permalink
Fix issue where only one rule is being displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
jggoebel committed Jul 11, 2024
1 parent 61f3784 commit 1734ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v3/services/rbacsvc/internal/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ func (s Server) prepareRole(role *rbacpb.Role) (preparedRole PreparedRole) {
}

for _, r := range role.GetRules() {
pr.Rules = append(preparedRole.Rules, PreparedRule{
pr.Rules = append(pr.Rules, PreparedRule{
Resources: r.GetResources(),
Verbs: r.GetVerbs(),
APIGroups: r.GetApiGroups(),
Expand Down

0 comments on commit 1734ed1

Please sign in to comment.