From cb2870aba4fa27696925b46d0ac62e46f19917bd Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 21 Dec 2023 11:34:58 +1300 Subject: [PATCH] Fix acls --- CRM/Core/CodeGen/GenerateData.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.25.1