Use stored entmeta to fill authzContext
This commit is contained in:
parent
bdf3e951f8
commit
f76fddb28e
|
@ -186,8 +186,7 @@ func (s *ConnectCA) Sign(
|
|||
"we are %s", serviceID.Datacenter, s.srv.config.Datacenter)
|
||||
}
|
||||
} else if isAgent {
|
||||
entMeta := structs.DefaultEnterpriseMetaInPartition(agentID.PartitionOrDefault())
|
||||
entMeta.FillAuthzContext(&authzContext)
|
||||
agentID.GetEnterpriseMeta().FillAuthzContext(&authzContext)
|
||||
if authz.NodeWrite(agentID.Agent, &authzContext) != acl.Allow {
|
||||
return acl.ErrPermissionDenied
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue