code: func (rp *resourceProvider) CheckACL(resName string, channelID string, idinfo interface{}) error {
  	resCfg := rp.resGetter(channelID)
  
  	if resCfg != nil {
  		pp := &aclmgmtPolicyProviderImpl{&policyEvaluatorImpl{resCfg}}
  		policyName := pp.GetPolicyName(resName)
  		if policyName != "" {
  			aclLogger.Debugf("acl policy %s found in config for resource %s", policyName, resName)
  			return pp.CheckACL(policyName, idinfo)
  		}
  		aclLogger.Debugf("acl policy not found in config for resource %s", resName)
  	}
  
  	return rp.defaultProvider.CheckACL(resName, channelID, idinfo)
  }
docs: //CheckACL implements the ACL