From a50358c5ba504ad2d6744fb63c6db04959814c96 Mon Sep 17 00:00:00 2001 From: Jille Timmermans Date: Thu, 22 Jun 2023 11:29:56 +0200 Subject: [PATCH] dump: Bugfix handling ALL PRIVILEGES when dumping current privs issue #1 --- privmerge.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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