http://issues.civicrm.org/jira/browse/CRM-12882
protected $_ppDAO;
function preProcess() {
+ if(!CRM_Core_Permission::check('administer payment processors')) {
+ CRM_Core_Error::fatal('You do not have permission to administer payment processors');
+ }
parent::preProcess();
CRM_Utils_System::setTitle(ts('Settings - Payment Processor'));
'delete all manual batches' => $prefix . ts('delete all manual batches'),
'export own manual batches' => $prefix . ts('export own manual batches'),
'export all manual batches' => $prefix . ts('export all manual batches'),
+ 'administer payment processors' => $prefix . ts('administer payment processors'),
);
return $permissions;
<desc>Payment Processor setup for CiviCRM transactions</desc>
<page_callback>CRM_Admin_Page_PaymentProcessor</page_callback>
<adminGroup>System Settings</adminGroup>
+ <access_arguments>administer payment processors</access_arguments>
<icon>admin/small/online_contribution_pages.png</icon>
<weight>30</weight>
</item>