CRM-15854 - CRM_Mailing_Info - Export workflow details to Angular
authorTim Otten <totten@civicrm.org>
Thu, 26 Feb 2015 23:05:16 +0000 (16:05 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 2 Mar 2015 23:59:42 +0000 (15:59 -0800)
CRM/Mailing/Info.php

index 8f12688693568591d22caa82c3459cd70707a0db..8e306b979349768eb2c2c8503a5fc114fe6d1bc6 100644 (file)
@@ -144,10 +144,14 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
           array('value' => 'Public Pages', 'label' => ts('Public Pages')),
           array('value' => 'User and User Admin Only', 'label' => ts('User and User Admin Only')),
         ),
+        'workflowEnabled' => CRM_Mailing_Info::workflowEnabled(),
       ),
     ));
     CRM_Core_Resources::singleton()->addPermissions(array(
       'view all contacts',
+      'create mailings',
+      'schedule mailings',
+      'approve mailings',
     ));
 
     return $result;