From: circleinteractive Date: Thu, 18 Feb 2016 11:30:43 +0000 (+0000) Subject: Changes to CRM/Report/Form/Activity.php regarding Civicase permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ad5f772ef6dfa7362cc63e4265fc76d1a7b5acd7;p=civicrm-core.git Changes to CRM/Report/Form/Activity.php regarding Civicase permissions --- diff --git a/CRM/Report/Form/Activity.php b/CRM/Report/Form/Activity.php index 84bc5ea730..33c10cac85 100644 --- a/CRM/Report/Form/Activity.php +++ b/CRM/Report/Form/Activity.php @@ -59,7 +59,8 @@ class CRM_Report_Form_Activity extends CRM_Report_Form { $components = CRM_Core_Component::getEnabledComponents(); foreach ($components as $componentName => $componentInfo) { - if (CRM_Core_Permission::check("access $componentName")) { + $permission = sprintf("access %s", $componentName == 'CiviCase' ? "all cases and activities" : $componentName); + if (CRM_Core_Permission::check($permission)) { $accessAllowed[] = $componentInfo->componentID; } }