CRM-17741 - Permissions for RelationshipType.get API.
authorJohan Vervloet <johanv@johanv.org>
Tue, 22 Dec 2015 12:42:59 +0000 (13:42 +0100)
committerJohan Vervloet <johanv@johanv.org>
Tue, 22 Dec 2015 12:42:59 +0000 (13:42 +0100)
----------------------------------------
* CRM-17741: RelationshipType.get API requires Administer CiviCRM permissions
  https://issues.civicrm.org/jira/browse/CRM-17741

CRM/Core/DAO/permissions.php

index 03bbfe0ad9d91d6c06764fe116e5d2db4a2fe206..6e335f41ab2257863ccf863784e8dc70e26620c4 100644 (file)
@@ -149,6 +149,16 @@ function _civicrm_api3_permissions($entity, $action, &$params) {
     ),
   );
 
+  // CRM-17741 - Permissions for RelationshipType.
+  $permissions['relationship_type'] = array(
+    'get' => array(
+      'access CiviCRM',
+    ),
+    'default' => array(
+      'administer CiviCRM',
+    ),
+  );
+
   // Activity permissions
   $permissions['activity'] = array(
     'delete' => array(