Skip to content

Commit

Permalink
Merge pull request #6767 from colemanw/CRM-17131
Browse files Browse the repository at this point in the history
CRM-17131 - Fix where clause
  • Loading branch information
monishdeb committed Sep 21, 2015
2 parents acf6be7 + f8d6636 commit 70b4908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/ACL/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 70b4908

Please sign in to comment.