From: Tim Otten Date: Mon, 9 Feb 2015 11:24:43 +0000 (-0800) Subject: CRM-15578 - Mailing API - Refine permissions X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8be71a63eb6de24055edf499b561388d28646c3;p=civicrm-core.git CRM-15578 - Mailing API - Refine permissions --- diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index 22f4450034..5db8394876 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -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(