CRM-11316 Fix online contrib, event reg, PCP account, petition signature and mailing...
[civicrm-core.git] / CRM / Contribute / Form / ContributionBase.php
index cba721e901b40da8d22c371e9807b1a77297ea23..df47a2b74b252b66ca87de4e128662cfec894c3c 100644 (file)
@@ -716,7 +716,8 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {
             );
             $this->_fields[$key] = $field;
           }
-          if ($field['add_captcha']) {
+          // CRM-11316 Is ReCAPTCHA enabled for this profile AND is this an anonymous visitor
+          if ($field['add_captcha'] && !$this->_userID) {
             $addCaptcha = TRUE;
           }
         }