Skip to content

Commit

Permalink
fix bug in eos grpc permission merging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Geens committed Oct 25, 2024
1 parent 10664f4 commit ad0b13f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/eosclient/eosgrpc/eosgrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,11 @@ func (c *Client) List(ctx context.Context, auth eosclient.Authorization, dpath s
if parent != nil && parent.SysACL != nil {
if fi.SysACL == nil {
log.Warn().Str("func", "List").Str("path", dpath).Str("SysACL is nil, taking parent", "").Msg("grpc response")
fi.SysACL.Entries = parent.SysACL.Entries
//fi.SysACL.Entries = parent.SysACL.Entries
fi.SysACL = &acl.ACLs{
Entries: parent.SysACL.Entries,
}
log.Debug().Any("ACL", fi.SysACL).Msg("")
} else {
fi.SysACL.Entries = append(fi.SysACL.Entries, parent.SysACL.Entries...)
}
Expand Down

0 comments on commit ad0b13f

Please sign in to comment.