CRM-16963 - Access CiviCRM is sufficient to retrieve country information.
authorJohan Vervloet <johanv@johanv.org>
Tue, 4 Aug 2015 13:48:12 +0000 (15:48 +0200)
committerJohan Vervloet <johanv@johanv.org>
Tue, 4 Aug 2015 13:49:20 +0000 (15:49 +0200)
----------------------------------------
* 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

index afad477239b6c2b6e3031833ca956952dee2e7dd..c572b9e68170dc196079edf19ac9c6a81ccc69ff 100644 (file)
@@ -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(