diff --git a/mosaico.php b/mosaico.php index 0239a7306..91f2bef0a 100644 --- a/mosaico.php +++ b/mosaico.php @@ -406,10 +406,12 @@ function mosaico_civicrm_container(\Symfony\Component\DependencyInjection\Contai */ function mosaico_civicrm_searchTasks($objectName, &$tasks) { if ($objectName == 'contact') { - $tasks[] = [ - 'title' => E::ts('Email - schedule/send via CiviMail (traditional)'), - 'class' => 'CRM_Mosaico_Form_Task_AdhocMailingTraditional', - ]; + if (CRM_Core_Permission::access('CiviMail')) { + $tasks[] = [ + 'title' => E::ts('Email - schedule/send via CiviMail (traditional)'), + 'class' => 'CRM_Mosaico_Form_Task_AdhocMailingTraditional', + ]; + } } }