CRM-19235 : Report locale notice
authoryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 13 Sep 2016 07:58:35 +0000 (13:28 +0530)
committeryashodha <yashodha.chaku@webaccessglobal.com>
Tue, 13 Sep 2016 07:58:35 +0000 (13:28 +0530)
----------------------------------------
* CRM-19235: Notice related to report permission on localized CiviCRM
  https://issues.civicrm.org/jira/browse/CRM-19235

CRM/Report/Form/Instance.php

index 22cf52d7c3fba9587d7b360f9016b301aeeab01a..b726dfaf3c214e2d9129c32782708102f447da33 100644 (file)
@@ -221,8 +221,7 @@ class CRM_Report_Form_Instance {
     $navigationDefaults = array();
 
     if (!isset($defaults['permission'])) {
-      $permissions = array_flip(CRM_Core_Permission::basicPermissions());
-      $defaults['permission'] = $permissions['CiviReport: access CiviReport'];
+      $defaults['permission'] = 'access CiviReport';
     }
 
     $userFrameworkResourceURL = CRM_Core_Config::singleton()->userFrameworkResourceURL;