Fix ACLs to use the correct name of the civicrm_group table
authorcolemanw <coleman@civicrm.org>
Fri, 23 Jun 2023 00:42:59 +0000 (17:42 -0700)
committercolemanw <coleman@civicrm.org>
Fri, 23 Jun 2023 04:41:16 +0000 (21:41 -0700)
commitf704d628e1484cc9ca425970d951b7f482a31ce9
tree94f1291908098713a2e320bea5b211ae4c5c1f03
parentbadce7e88b4875972e752110c880408952b41286
Fix ACLs to use the correct name of the civicrm_group table

For unknown historical reasons, group-based ACLs incorrectly used 'civicrm_saved_search'
as the value for 'object_table' when referencing a group id.

This updates all ACL records, tests, and adds legacy handling for hook subscribers with a noisy deprecation notice.
17 files changed:
CRM/ACL/API.php
CRM/ACL/BAO/ACL.php
CRM/ACL/Form/ACL.php
CRM/ACL/Page/ACL.php
CRM/Bridge/OG/Drupal.php
CRM/Contact/BAO/Group.php
CRM/Core/Permission/Base.php
CRM/Upgrade/Incremental/sql/5.64.alpha1.mysql.tpl
CRM/Utils/Hook.php
Civi/Test/ACLPermissionTrait.php
tests/phpunit/CRM/Group/Page/AjaxTest.php
tests/phpunit/CRM/Mailing/BAO/MailingTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php
tests/phpunit/api/v3/GroupTest.php
tests/phpunit/api/v3/RelationshipTest.php
tests/phpunit/api/v3/ReportTemplateTest.php
xml/templates/civicrm_acl.tpl