From 51eb14ce05db7163b752c6a60564d010b00466f7 Mon Sep 17 00:00:00 2001 From: colemanw Date: Wed, 18 Oct 2023 16:35:54 -0400 Subject: [PATCH] Angular - Always load CiviMail modules if component is enabled --- CRM/Mailing/Info.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index bffbd7ca79..2eec29a438 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -137,14 +137,6 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { * @see CRM_Utils_Hook::angularModules */ public function getAngularModules() { - // load angular files only if valid permissions are granted to the user - if (!CRM_Core_Permission::check('access CiviMail') - && !CRM_Core_Permission::check('create mailings') - && !CRM_Core_Permission::check('schedule mailings') - && !CRM_Core_Permission::check('approve mailings') - ) { - return []; - } global $civicrm_root; $result = []; -- 2.25.1