CRM-20467: PHP notices on contact search for ACL'd user
authordeb.monish <monish.deb@jmaconsulting.biz>
Tue, 25 Apr 2017 18:40:41 +0000 (00:10 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Tue, 25 Apr 2017 18:40:41 +0000 (00:10 +0530)
CRM/Contact/BAO/Contact.php

index e0b6c972e04bd163ebf91300b79fa94f42b46a59..e58be5ec3d56d7bdcb0beef419487e0e32077d88 100644 (file)
@@ -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;