CRM-17393, changed the incorrect logic
authorKurund Jalmi <kurund@yahoo.com>
Mon, 2 Nov 2015 12:01:49 +0000 (17:31 +0530)
committerKurund Jalmi <kurund@yahoo.com>
Mon, 2 Nov 2015 12:01:49 +0000 (17:31 +0530)
CRM/Mailing/Info.php

index 377b673678a6386b0b8eb3ca855cf54a1a6edcf7..e5f9aa84015338a855c0ac23a5f303f7c9c7d2f5 100644 (file)
@@ -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();
     }