code: func (n *collElgNotifier) elgEnabled(ledgerID string, existingPolicy, postCommitPolicy *common.CollectionPolicyConfig) (bool, error) {
  	existingMember, err := n.membershipInfoProvider.AmMemberOf(ledgerID, existingPolicy)
  	if err != nil || existingMember {
  		return false, err
  	}
  	return n.membershipInfoProvider.AmMemberOf(ledgerID, postCommitPolicy)
  }
docs: // elgEnabled returns true if the peer is not eligible for a collection as per 'existingPolicy' and is eligible as per 'postCommitPolicy'