Skip to content

Commit

Permalink
dump: Bugfix handling ALL PRIVILEGES when dumping current privs
Browse files Browse the repository at this point in the history
issue #1
  • Loading branch information
Jille committed Jun 22, 2023
1 parent a37cf74 commit a50358c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion privmerge.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func mergePrivileges(input []GenericPrivilege) []GenericPrivilege {
if existing[grantee][target] == nil {
existing[grantee][target] = map[bool]privilegeSet{}
}
for _, priv := range o.Privileges {
for _, priv := range o.expandPrivileges() {
ps := existing[grantee][target][o.Grantable]
ps.Add(priv)
existing[grantee][target][o.Grantable] = ps
Expand Down

0 comments on commit a50358c

Please sign in to comment.