From: Johan Vervloet Date: Tue, 4 Aug 2015 13:48:12 +0000 (+0200) Subject: CRM-16963 - Access CiviCRM is sufficient to retrieve country information. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ec642959426d3b63db86feb6d78b6c2b2e47e909;p=civicrm-core.git 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 --- 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(