Add preUpgrade message
authordeb.monish <monish.deb@jmaconsulting.biz>
Mon, 18 Sep 2017 11:44:53 +0000 (17:14 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Wed, 20 Sep 2017 08:09:36 +0000 (13:39 +0530)
CRM/Core/Permission.php
CRM/Upgrade/Incremental/php/FourSeven.php

index ef11aa58a673c53f07ec1114e3dadb8d68cf90af..c934bc6098c13d9c1f87d85dee887c80b6f5d291 100644 (file)
@@ -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'),
index 4065760257fff13fabc3813408f873bf8825ffda..c7b4b83e2f5b6f1b93f7384cd921cec021605de4 100644 (file)
@@ -72,6 +72,16 @@ class CRM_Upgrade_Incremental_php_FourSeven extends CRM_Upgrade_Incremental_Base
           . '</p>';
       }
     }
+    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 .= '<p>' . 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. <a href=%5>Read more</a>', $params) . '</p>';
+    }
   }
 
   /**