From: Kurund Jalmi Date: Mon, 2 Nov 2015 12:01:49 +0000 (+0530) Subject: CRM-17393, changed the incorrect logic X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=011c7136d0c852c16e80b45c395b711ce4be9944;p=civicrm-core.git CRM-17393, changed the incorrect logic --- diff --git a/CRM/Mailing/Info.php b/CRM/Mailing/Info.php index 377b673678..e5f9aa8401 100644 --- a/CRM/Mailing/Info.php +++ b/CRM/Mailing/Info.php @@ -67,9 +67,9 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info { 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') + && !CRM_Core_Permission::check('create mailings') + && !CRM_Core_Permission::check('schedule mailings') + && !CRM_Core_Permission::check('approve mailings') ) { return array(); }