Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#721 Fix regression on refreshing group_contact cache before checking acls #13597

Merged
merged 1 commit into from
Feb 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CRM/ACL/BAO/ACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,10 @@ public static function whereClause($type, &$tables, &$whereTables, $contactID =
while ($dao->fetch()) {
$groupIDs[] = $dao->id;

if (($dao->saved_search_id || $dao->children || $dao->parents) &&
$dao->cache_date == NULL
) {
CRM_Contact_BAO_GroupContactCache::load($dao);
if (($dao->saved_search_id || $dao->children || $dao->parents)) {
if ($dao->cache_date == NULL) {
CRM_Contact_BAO_GroupContactCache::load($dao);
}
$groupContactCacheClause = " UNION SELECT contact_id FROM civicrm_group_contact_cache WHERE group_id IN (" . implode(', ', $groupIDs) . ")";
}

Expand Down