From: Dave Greenberg Date: Mon, 19 May 2014 17:53:23 +0000 (-0700) Subject: CRM-12882 - Allow all admins to view payment processors page. Clarify error message... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=060e084535a1dc4f750460494b92bd8e96d9186f;p=civicrm-core.git CRM-12882 - Allow all admins to view payment processors page. Clarify error message when try to add or edit a payment processor without the new permission. ---------------------------------------- * CRM-12882: https://issues.civicrm.org/jira/browse/CRM-12882 --- diff --git a/CRM/Admin/Form/PaymentProcessor.php b/CRM/Admin/Form/PaymentProcessor.php index fdad420b72..8453954760 100644 --- a/CRM/Admin/Form/PaymentProcessor.php +++ b/CRM/Admin/Form/PaymentProcessor.php @@ -48,7 +48,7 @@ class CRM_Admin_Form_PaymentProcessor extends CRM_Admin_Form { function preProcess() { if(!CRM_Core_Permission::check('administer payment processors')) { - CRM_Core_Error::fatal('You do not have permission to administer payment processors'); + CRM_Core_Error::fatal('The \'administer payment processors\' permission is required to add or edit a payment processor.'); } parent::preProcess(); diff --git a/CRM/Core/xml/Menu/Admin.xml b/CRM/Core/xml/Menu/Admin.xml index b26ac03b4c..8877a7d030 100644 --- a/CRM/Core/xml/Menu/Admin.xml +++ b/CRM/Core/xml/Menu/Admin.xml @@ -461,7 +461,6 @@ Payment Processor setup for CiviCRM transactions CRM_Admin_Page_PaymentProcessor System Settings - administer payment processors admin/small/online_contribution_pages.png 30 @@ -476,7 +475,7 @@ civicrm/admin/setting/misc Misc (Undelete, PDFs, Limits, Logging, Captcha, etc.) - Enable undelete/move to trash feature, detailed change logging, ReCAPTCHA to protect forms. + Enable undelete/move to trash feature, detailed change logging, ReCAPTCHA to protect forms. CRM_Admin_Form_Setting_Miscellaneous System Settings admin/small/36.png