From ec642959426d3b63db86feb6d78b6c2b2e47e909 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Tue, 4 Aug 2015 15:48:12 +0200 Subject: [PATCH] CRM-16963 - Access CiviCRM is sufficient to retrieve country information. ---------------------------------------- * CRM-16963: 'Administer CiviCRM' permissions needed to retrieve countries using the API https://issues.civicrm.org/jira/browse/CRM-16963 --- 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 afad477239..c572b9e681 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -95,6 +95,16 @@ function _civicrm_api3_permissions($entity, $action, &$params) { ), ); + // CRM-16963 - Permissions for country. + $permissions['country'] = array( + 'get' => array( + 'access CiviCRM', + ), + 'default' => array( + 'administer CiviCRM', + ), + ); + // Contact-related data permissions. // CRM-14094 - Users can edit and delete contact-related objects using inline edit with 'edit all contacts' permission $permissions['address'] = array( -- 2.25.1