From 2f0e837405474cb0fa8feba4d648054fa2548b0b Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Tue, 10 Jun 2014 12:30:29 +0200 Subject: [PATCH] CRM-14832 added permission check for entity relationship --- CRM/Core/DAO/permissions.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index ff53041ae8..7c304efac1 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -107,6 +107,22 @@ function _civicrm_api3_permissions($entity, $action, &$params) { $permissions['entity_tag'] = $permissions['address']; $permissions['note'] = $permissions['address']; + //relationship permissions + $permissions['relationship'] = array( + 'get' => array( + 'access CiviCRM', + 'view all contacts', + ), + 'delete' => array( + 'access CiviCRM', + 'delete contacts', + ), + 'default' => array( + 'access CiviCRM', + 'edit all contacts', + ), + ); + // Activity permissions $permissions['activity'] = array( 'delete' => array( -- 2.25.1