Skip to content

Commit

Permalink
Fix permission check, issue iATSPayments#343
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon committed Nov 30, 2020
1 parent 65618bc commit 6bd647b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Core/Payment/iATSService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 6bd647b

Please sign in to comment.