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();
}