CRM-15578 - Mailing API - Refine permissions
authorTim Otten <totten@civicrm.org>
Mon, 9 Feb 2015 11:24:43 +0000 (03:24 -0800)
committerTim Otten <totten@civicrm.org>
Mon, 9 Feb 2015 13:24:37 +0000 (05:24 -0800)
CRM/Core/DAO/permissions.php

index 22f44500342915da69a8b176d2424abade865e65..5db83948767777ba139a3ed5d86980c6d437fa89 100644 (file)
@@ -66,8 +66,11 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
     'default' => array('administer CiviCRM'),
   );
 
+  // Note: Additional permissions in DynamicFKAuthorization
   $permissions['attachment'] = array(
-    'default' => array('access CiviCRM', 'access AJAX API'),
+    'default' => array(
+      array('access CiviCRM', 'access AJAX API'),
+    ),
   );
 
   // Contact permissions
@@ -249,6 +252,10 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
       'access CiviMail',
     ),
   );
+  $permissions['mailing_a_b'] = $permissions['mailing'];
+  $permissions['mailing_group'] = $permissions['mailing'];
+  $permissions['mailing_job'] = $permissions['mailing'];
+  $permissions['mailing_recipients'] = $permissions['mailing'];
 
   // Membership permissions
   $permissions['membership'] = array(