code: func isIdentityAuthorizedByPrincipalSet(channel string, evaluator principalEvaluator, principalSet policies.PrincipalSet, identity api.PeerIdentityType) bool {
  	// We look for a principal which authorizes the identity
  	// among all principals in the principalSet
  	for _, principal := range principalSet {
  		err := evaluator.SatisfiesPrincipal(channel, identity, principal)
  		if err != nil {
  			continue
  		}
  		// Else, err is nil, so we found a principal which authorized
  		// the given identity.
  		return true
  	}
  	return false
  }
docs: // isIdentityAuthorizedByPrincipalSet returns whether the given identity satisfies some principal out of the given PrincipalSet