From f8be71a63eb6de24055edf499b561388d28646c3 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 9 Feb 2015 03:24:43 -0800 Subject: [PATCH] CRM-15578 - Mailing API - Refine permissions --- CRM/Core/DAO/permissions.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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( -- 2.25.1