I've specified a policy for the LifecycleEndorsement in my configtx.yaml and it is:
But when I try to commit the chaincode I get ENDORSEMENT_FAILURE in the peer logs because the identity being evaluated is the peer identity. How can I get the admin identity to be evaluated? The cli, from which I execute the commit command, has CORE_PEER_MSPCONFIGPATH set to the org admin folder.
The chaincode is approved only by MyOrg (and I expect that is enough considering the LifecycleEndorsement policy)