From 5ab07c7c6f32f9c7349923e5aca0784e8b4cc3cc Mon Sep 17 00:00:00 2001 From: monishdeb Date: Wed, 22 Apr 2015 13:39:15 +0530 Subject: [PATCH] CRM-16327 fix - GroupContact/delete call failed: "edit groups" permission required https://issues.civicrm.org/jira/browse/CRM-16327 --- CRM/Core/DAO/permissions.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index b06bb80759..7116245f11 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -241,10 +241,21 @@ function _civicrm_api3_permissions($entity, $action, &$params) { 'edit groups', ), ); - $permissions['group_contact'] = $permissions['group']; + $permissions['group_nesting'] = $permissions['group']; $permissions['group_organization'] = $permissions['group']; + //Group Contact permission + $permissions['group_contact'] = array( + 'get' => array( + 'access CiviCRM', + ), + 'default' => array( + 'access CiviCRM', + 'edit all contacts', + ), + ); + // CiviMail Permissions $civiMailBasePerms = array( // To get/preview/update, one must have least one of these perms: -- 2.25.1