From aeeebeea1eb7d0673bf5b63c464c7aa05c74d60a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 16 Feb 2016 17:51:07 -0500 Subject: [PATCH] CRM-18049 - Backport api campaign permissions --- CRM/Core/DAO/permissions.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index 66012a56b1..44420d70b4 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -167,6 +167,16 @@ function _civicrm_api3_permissions($entity, $action, &$params) { ), ); + // Campaign permissions + $permissions['campaign'] = array( + 'get' => array('access CiviCRM'), + 'default' => array( + // nested array = OR + array('administer CiviCampaign', 'manage campaign'), + ), + ); + $permissions['survey'] = $permissions['campaign']; + // Financial permissions $permissions['contribution'] = array( 'get' => array( -- 2.25.1