From bcb09fd890a96da012708bb065d6bd14a25939fa Mon Sep 17 00:00:00 2001 From: Dave Greenberg Date: Wed, 26 Mar 2014 13:14:17 -0700 Subject: [PATCH] CRM-14094 - Require Edit all Contacts permission consistently for inline editing deletion of contact-related objects e.g. address, email, phone. This is consistent with behavior of full Edit form. ---------------------------------------- * CRM-14094: Removing tags requires permission "delete contacts", should require "edit all contacts" http://issues.civicrm.org/jira/browse/CRM-14094 --- CRM/Core/DAO/permissions.php | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/CRM/Core/DAO/permissions.php b/CRM/Core/DAO/permissions.php index 115b489eba..0815efe281 100644 --- a/CRM/Core/DAO/permissions.php +++ b/CRM/Core/DAO/permissions.php @@ -87,26 +87,13 @@ function _civicrm_api3_permissions($entity, $action, &$params) { ), ); - // Contact-related data permissions - $permissions['entity_tag'] = array( - 'get' => array( - 'access CiviCRM', - 'view all contacts', - ), - 'default' => array( - 'access CiviCRM', - 'edit all contacts', - ), - ); + // 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( 'get' => array( 'access CiviCRM', 'view all contacts', ), - 'delete' => array( - 'access CiviCRM', - 'delete contacts', - ), 'default' => array( 'access CiviCRM', 'edit all contacts', @@ -117,6 +104,7 @@ function _civicrm_api3_permissions($entity, $action, &$params) { $permissions['website'] = $permissions['address']; $permissions['im'] = $permissions['address']; $permissions['loc_block'] = $permissions['address']; + $permissions['entity_tag'] = $permissions['address']; $permissions['note'] = $permissions['address']; // Activity permissions -- 2.25.1