From c2463857308dd897978f84c41bab7e0e788813f9 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Wed, 26 Apr 2017 00:10:41 +0530 Subject: [PATCH] CRM-20467: PHP notices on contact search for ACL'd user --- CRM/Contact/BAO/Contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Contact/BAO/Contact.php b/CRM/Contact/BAO/Contact.php index e0b6c972e0..e58be5ec3d 100644 --- a/CRM/Contact/BAO/Contact.php +++ b/CRM/Contact/BAO/Contact.php @@ -3199,7 +3199,7 @@ AND civicrm_openid.is_primary = 1"; // if still user does not have required permissions, check acl. if (!$hasAllPermissions && $menuOptions['ref'] != 'delete-contact') { - if (in_array($values['ref'], $aclPermissionedTasks) && + if (in_array($menuOptions['ref'], $aclPermissionedTasks) && $corePermission == CRM_Core_Permission::EDIT ) { $hasAllPermissions = TRUE; -- 2.25.1