diff --git a/privmerge.go b/privmerge.go index 08f570c..990145a 100644 --- a/privmerge.go +++ b/privmerge.go @@ -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