From da387e7bdcaa142556e3133960dc24b50b522383 Mon Sep 17 00:00:00 2001 From: Johan Vervloet Date: Tue, 22 Dec 2015 13:42:59 +0100 Subject: [PATCH] CRM-17741 - Permissions for RelationshipType.get API. ---------------------------------------- * CRM-17741: RelationshipType.get API requires Administer CiviCRM permissions https://issues.civicrm.org/jira/browse/CRM-17741 --- 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 03bbfe0ad9..6e335f41ab 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -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( -- 2.25.1