Fix a bug with ACL enforcement of reads on namespaced config entries. (#7239)
This commit is contained in:
parent
aa9db3f903
commit
f610d1d791
|
@ -88,6 +88,8 @@ func (c *ConfigEntry) Get(args *structs.ConfigEntryQuery, reply *structs.ConfigE
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
lookupEntry.GetEnterpriseMeta().Merge(&args.EnterpriseMeta)
|
||||
|
||||
if authz != nil && !lookupEntry.CanRead(authz) {
|
||||
return acl.ErrPermissionDenied
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue