Skip to content

Commit ad0b13f

Browse files
committed
fix bug in eos grpc permission merging
1 parent 10664f4 commit ad0b13f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/eosclient/eosgrpc/eosgrpc.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,11 @@ func (c *Client) List(ctx context.Context, auth eosclient.Authorization, dpath s
12421242
if parent != nil && parent.SysACL != nil {
12431243
if fi.SysACL == nil {
12441244
log.Warn().Str("func", "List").Str("path", dpath).Str("SysACL is nil, taking parent", "").Msg("grpc response")
1245-
fi.SysACL.Entries = parent.SysACL.Entries
1245+
//fi.SysACL.Entries = parent.SysACL.Entries
1246+
fi.SysACL = &acl.ACLs{
1247+
Entries: parent.SysACL.Entries,
1248+
}
1249+
log.Debug().Any("ACL", fi.SysACL).Msg("")
12461250
} else {
12471251
fi.SysACL.Entries = append(fi.SysACL.Entries, parent.SysACL.Entries...)
12481252
}

0 commit comments

Comments
 (0)