From 5ad18cc2543d0069d8e26315435ddc99e2a6cd46 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Mon, 18 Sep 2017 17:14:53 +0530 Subject: [PATCH] Add preUpgrade message --- CRM/Core/Permission.php | 8 ++++---- CRM/Upgrade/Incremental/php/FourSeven.php | 10 ++++++++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CRM/Core/Permission.php b/CRM/Core/Permission.php index ef11aa58a6..c934bc6098 100644 --- a/CRM/Core/Permission.php +++ b/CRM/Core/Permission.php @@ -828,19 +828,19 @@ class CRM_Core_Permission { ), 'close own manual batches' => array( $prefix . ts('close own manual batches'), - ts('Close accounting batches created by user'), + ts('Close accounting batches created by user (with Access to CiviContribute)'), ), 'close all manual batches' => array( $prefix . ts('close all manual batches'), - ts('Close all accounting batches'), + ts('Close all accounting batches (with Access to CiviContribute)'), ), 'reopen own manual batches' => array( $prefix . ts('reopen own manual batches'), - ts('Reopen accounting batches created by user'), + ts('Reopen accounting batches created by user (with Access to CiviContribute)'), ), 'reopen all manual batches' => array( $prefix . ts('reopen all manual batches'), - ts('Reopen all accounting batches'), + ts('Reopen all accounting batches (with Access to CiviContribute)'), ), 'view own manual batches' => array( $prefix . ts('view own manual batches'), diff --git a/CRM/Upgrade/Incremental/php/FourSeven.php b/CRM/Upgrade/Incremental/php/FourSeven.php index 4065760257..c7b4b83e2f 100644 --- a/CRM/Upgrade/Incremental/php/FourSeven.php +++ b/CRM/Upgrade/Incremental/php/FourSeven.php @@ -72,6 +72,16 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base . '

'; } } + if ($rev == '4.7.26') { + $params = array( + 1 => 'Close accounting batches created by user', + 2 => 'Close all accounting batches', + 3 => 'Reopen accounting batches created by user', + 4 => 'Reopen all accounting batches', + 5 => 'https://wiki.civicrm.org/confluence/display/CRMDOC/Default+Permissions+and+Roles', + ); + $preUpgradeMessage .= '

' . ts('A new set of batch permissions has been added called "%1", "%2", "%3" and "%4". These permissions are now used to control access to the Accounting Batches tasks. If your users need to be able to Reopen or Close batches you may need to give them additional permissions. Read more', $params) . '

'; + } } /** -- 2.25.1