From f8d663655979a9c9e82543d2cc5dc6b8cd02e898 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 18 Sep 2015 14:09:49 -0400 Subject: [PATCH] CRM-17131 - Fix where clause --- CRM/ACL/API.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/ACL/API.php b/CRM/ACL/API.php index cd2deab2e4a6..0d606685126b 100644 --- a/CRM/ACL/API.php +++ b/CRM/ACL/API.php @@ -138,7 +138,7 @@ public static function whereClause( 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; }