From 011c7136d0c852c16e80b45c395b711ce4be9944 Mon Sep 17 00:00:00 2001 From: Kurund Jalmi Date: Mon, 2 Nov 2015 17:31:49 +0530 Subject: [PATCH] CRM-17393, changed the incorrect logic --- CRM/Mailing/Info.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); } -- 2.25.1