Fix acls
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 20 Dec 2023 22:34:58 +0000 (11:34 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 20 Dec 2023 22:44:11 +0000 (11:44 +1300)
CRM/Core/CodeGen/GenerateData.php

index 3cf8a7e513aedc3dfd5abaad9acd1cd54e4cecba..4289ed1cf7981bdabbcae583e439995071a3837c 100644 (file)
@@ -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();