From: Coleman Watts Date: Fri, 18 Sep 2015 18:09:49 +0000 (-0400) Subject: CRM-17131 - Fix where clause X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=f8d663655979a9c9e82543d2cc5dc6b8cd02e898;p=civicrm-core.git CRM-17131 - Fix where clause --- diff --git a/CRM/ACL/API.php b/CRM/ACL/API.php index cd2deab2e4..0d60668512 100644 --- a/CRM/ACL/API.php +++ b/CRM/ACL/API.php @@ -138,7 +138,7 @@ class CRM_ACL_API { if ($contactID && (CRM_Core_Permission::check('edit my contact') || $type == self::VIEW && CRM_Core_Permission::check('view my contact')) ) { - $where = "contact_a.id = $contactID OR ($where)"; + $where = "(contact_a.id = $contactID OR ($where))"; } return $where; }