From: colemanw Date: Wed, 18 Oct 2023 20:35:54 +0000 (-0400) Subject: Angular - Always load CiviMail modules if component is enabled X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=51eb14ce05db7163b752c6a60564d010b00466f7;p=civicrm-core.git Angular - Always load CiviMail modules if component is enabled --- 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 = [];