CRM-18400 - CRM_Mailing_Info - Restore workflow permissions
authorTim Otten <totten@civicrm.org>
Tue, 12 Apr 2016 20:46:10 +0000 (13:46 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 12 Apr 2016 20:46:10 +0000 (13:46 -0700)
CRM/Mailing/Info.php

index a913567be03afe1e2353affda5ad59d8a55ca3b3..8322fb9cd79061138de0cf668b543bdf4a307a73 100644 (file)
@@ -249,20 +249,14 @@ class CRM_Mailing_Info extends CRM_Core_Component_Info {
     );
 
     if (self::workflowEnabled() || $getAllUnconditionally) {
-      $permissions[] = array(
-        'create mailings' => array(
-          ts('create mailings'),
-        ),
+      $permissions['create mailings'] = array(
+        ts('create mailings'),
       );
-      $permissions[] = array(
-        'schedule mailings' => array(
-          ts('schedule mailings'),
-        ),
+      $permissions['schedule mailings'] = array(
+        ts('schedule mailings'),
       );
-      $permissions[] = array(
-        'approve mailings' => array(
-          ts('approve mailings'),
-        ),
+      $permissions['approve mailings'] = array(
+        ts('approve mailings'),
       );
     }