Skip to content

Commit

Permalink
ACHEFT only disables the billing info update, not the general schedul…
Browse files Browse the repository at this point in the history
…e editing or amount
  • Loading branch information
adixon committed Mar 18, 2021
1 parent 5a1a4e2 commit a250198
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CRM/Core/Payment/iATSService.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,7 @@ public function isSupported($method) {
* @return bool
*/
protected function allowSelfService($action) {
if ('CRM_Core_Payment_iATSServiceACHEFT' == CRM_Utils_System::getClassName($this)) {
return FALSE;
}
elseif (!CRM_Core_Permission::check('access CiviContribute')) {
if (!CRM_Core_Permission::check('access CiviContribute')) {
// disable self-service 'action' if the admin has not allowed it
if (FALSE == $this->getSettings('enable_'.$action)) {
return FALSE;
Expand All @@ -149,6 +146,10 @@ public function supportsFutureRecurStartDate() {
*/

public function supportsUpdateSubscriptionBillingInfo() {
// the CiviCRM internal form for updating billing info for ACHEFT is inadequate
if ('CRM_Core_Payment_iATSServiceACHEFT' == CRM_Utils_System::getClassName($this)) {
return FALSE;
}
return $this->allowSelfService('update_subscription_billing_info');
}

Expand Down

0 comments on commit a250198

Please sign in to comment.