From 060e084535a1dc4f750460494b92bd8e96d9186f Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Mon, 19 May 2014 10:53:23 -0700 Subject: [PATCH] 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 --- CRM/Admin/Form/PaymentProcessor.php | 2 +- CRM/Core/xml/Menu/Admin.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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 -- 2.25.1