From 6bd647b945a0a4c515b4056d6117ddb1c25e5ac0 Mon Sep 17 00:00:00 2001 From: adixon Date: Mon, 30 Nov 2020 13:34:02 -0500 Subject: [PATCH] Fix permission check, issue #343 --- CRM/Core/Payment/iATSService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Core/Payment/iATSService.php b/CRM/Core/Payment/iATSService.php index d1f00660..93cc4041 100644 --- a/CRM/Core/Payment/iATSService.php +++ b/CRM/Core/Payment/iATSService.php @@ -102,7 +102,7 @@ public function isSupported($method) { if ('CRM_Core_Payment_iATSServiceACHEFT' == CRM_Utils_System::getClassName($this)) { return FALSE; } - elseif (!CRM_Core_Permission::check('access CiviContribution')) { + elseif (!CRM_Core_Permission::check('access CiviContribute')) { // disable self-service update of billing info if the admin has not allowed it if (FALSE == $this->getSettings('enable_update_subscription_billing_info')) { return FALSE; @@ -123,7 +123,7 @@ protected function allowSelfService($action) { if ('CRM_Core_Payment_iATSServiceACHEFT' == CRM_Utils_System::getClassName($this)) { return FALSE; } - elseif (!CRM_Core_Permission::check('access CiviContribution')) { + elseif (!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;