Skip to content
Snippets Groups Projects
Commit f34a10c4 authored by eileen's avatar eileen :8ball:
Browse files

Merge branch 'update_group_hook' into 'master'

Updte hook_civicrm_aclGroup implementation following from civicrm/civicrm-core#26615

See merge request !6
parents a8046cdc 427ba472
Branches
Tags 2.9.0
1 merge request!6Updte hook_civicrm_aclGroup implementation following from civicrm/civicrm-core#26615
......@@ -13,11 +13,11 @@
<author>CiviCRM LLC</author>
<email>info@civicrm.org</email>
</maintainer>
<releaseDate>2023-01-05</releaseDate>
<version>2.8.0</version>
<releaseDate>2023-08-02</releaseDate>
<version>2.9.0</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.51</ver>
<ver>5.64</ver>
</compatibility>
<comments>This is a port of the CiviCRM multisite module to an extension. You will need to review the changes in this version</comments>
<civix>
......
......@@ -167,8 +167,8 @@ function multisite_civicrm_post($op, $objectName, $objectId, &$objectRef) {
* @throws \CiviCRM_API3_Exception
*/
function multisite_civicrm_aclGroup($type, $contactID, $tableName, &$allGroups, &$currentGroups) {
// only process saved search
if ($tableName != 'civicrm_saved_search') {
// only process civicrm groups
if ($tableName != 'civicrm_group') {
return;
}
$isEnabled = civicrm_api('setting', 'getvalue', [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment