Fix regression on refreshing group_contact cache before checking acls
authoreileen <emcnaughton@wikimedia.org>
Thu, 14 Feb 2019 05:37:14 +0000 (18:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 14 Feb 2019 20:22:32 +0000 (09:22 +1300)
commit3261c27f7d2c193b97d0b923fa1e1ba546640c97
tree74a5317d3995484365e61f868af1d2bcac2d57c1
parent9d4ae5ad00db07920644901c068872bfd2e97b65
Fix regression on refreshing group_contact cache before checking acls

We seem to be checking if the cache needs a rebuild and IF SO doing 2 actions
1) rebuilding it
2) permitting access to contacts related to it

When really it should do only 1) above - this patch changes as such

This seems to be whackamole off https://github.com/civicrm/civicrm-core/pull/12344
going too far one way & https://github.com/civicrm/civicrm-core/pull/13448
fixing but adding this new variant
CRM/ACL/BAO/ACL.php