From 117f95501bdaf9160a7f27473c693bb6b074c612 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 3 Jan 2019 12:07:56 -0500 Subject: [PATCH] fixes core#609 - view 'Advanced Search' links without 'view all contacts' permission --- CRM/Mailing/BAO/Mailing.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index 9edbbb624543..927fdeec4413 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -2179,12 +2179,10 @@ public static function &report($id, $skipDetails = FALSE, $isSMS = FALSE) { ); $actionLinks = array(CRM_Core_Action::VIEW => array('name' => ts('Report'))); - if (CRM_Core_Permission::check('view all contacts')) { - $actionLinks[CRM_Core_Action::ADVANCED] = array( - 'name' => ts('Advanced Search'), - 'url' => 'civicrm/contact/search/advanced', - ); - } + $actionLinks[CRM_Core_Action::ADVANCED] = array( + 'name' => ts('Advanced Search'), + 'url' => 'civicrm/contact/search/advanced', + ); $action = array_sum(array_keys($actionLinks)); $report['event_totals']['actionlinks'] = array();