Reverting change from RT#765026 that has been disabled for years, and patched upstrea...
authorRuben Rodriguez <ruben@trisquel.org>
Mon, 5 Jun 2023 20:07:24 +0000 (16:07 -0400)
committerRuben Rodriguez <ruben@trisquel.org>
Mon, 5 Jun 2023 20:53:22 +0000 (16:53 -0400)
CRM/ACL/BAO/Cache.php

index 9b2f13f53cea553ae55591813a37fb3cbb23d433..eac03d8b101fccb86b03b316d788eb2d26828210 100644 (file)
@@ -64,15 +64,9 @@ SELECT acl_id
 ";
     $params = [1 => [$id, 'Integer']];
 
-    /* this is related to RT#765026
-       Something is occasionally inserting records in civicrm_acl_cache with id null.
-       That causes i for our anonymous visitors who want to sign petitions.
-       Removed. Ward, 2012-07-20 */
-    /*
     if ($id == 0) {
-       $query .= " OR contact_id IS NULL";
+      $query .= " OR contact_id IS NULL";
     }
-    t*/
 
     $dao = CRM_Core_DAO::executeQuery($query, $params);