From: Eileen McNaughton Date: Wed, 20 Dec 2023 22:34:58 +0000 (+1300) Subject: Fix acls X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=cb2870aba4fa27696925b46d0ac62e46f19917bd;p=civicrm-core.git Fix acls --- diff --git a/CRM/Core/CodeGen/GenerateData.php b/CRM/Core/CodeGen/GenerateData.php index 3cf8a7e513..4289ed1cf7 100644 --- a/CRM/Core/CodeGen/GenerateData.php +++ b/CRM/Core/CodeGen/GenerateData.php @@ -1253,7 +1253,7 @@ class CRM_Core_CodeGen_GenerateData { 'name' => 'Advisory Board', 'label' => 'Advisory Board', ]) - ->execute()->first()['id']; + ->execute()->first()['value']; $advisoryGroupID = Group::get(FALSE) ->addWhere('name', '=', 'Advisory Board') ->execute()->first()['id']; @@ -1270,7 +1270,7 @@ class CRM_Core_CodeGen_GenerateData { 'name' => 'Advisory board access to volunteers', 'entity_table' => 'civicrm_acl_role', 'operation' => 'Edit', - 'object_table' => 'civicrm_saved_search', + 'object_table' => 'civicrm_group', 'entity_id' => $roleID, 'object_id' => $volunteerID, ])->execute();