(REF) Consistently pass `string $entity` to all flavors of checkAccess
authorTim Otten <totten@civicrm.org>
Mon, 7 Jun 2021 06:05:40 +0000 (23:05 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 8 Jun 2021 04:10:03 +0000 (21:10 -0700)
commita5d0f31af7fea240ee802a6eb7b692428dc772e4
tree1472251f1e416867c24cbdff43eb0b68a0c6f96c
parent6ea81ac6742303f14cf07143379da6d5f7845792
(REF) Consistently pass `string $entity` to all flavors of checkAccess

1. This removes the special-case where `CustomValue::checkAccess()` needs an extra parameter
   to identify the target entity.
2. This lines things up to do the swap from `_checkAccess()` to a hook/event listener
CRM/Contact/AccessTrait.php
CRM/Contact/BAO/Contact.php
CRM/Core/BAO/CustomValue.php
CRM/Core/DAO.php
CRM/Core/DynamicFKAccessTrait.php
Civi/Api4/Utils/CoreUtil.php