From: yashodha Date: Tue, 13 Sep 2016 07:58:35 +0000 (+0530) Subject: CRM-19235 : Report locale notice X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f420456d2270e2125ee793d6e7f14ff9799b4cae;p=civicrm-core.git CRM-19235 : Report locale notice ---------------------------------------- * CRM-19235: Notice related to report permission on localized CiviCRM https://issues.civicrm.org/jira/browse/CRM-19235 --- diff --git a/CRM/Report/Form/Instance.php b/CRM/Report/Form/Instance.php index 22cf52d7c3..b726dfaf3c 100644 --- a/CRM/Report/Form/Instance.php +++ b/CRM/Report/Form/Instance.php @@ -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;