(REF) Isolate calls to $bao::checkAccess. Prefer CoreUtil::checkAccessDelegate.
authorTim Otten <totten@civicrm.org>
Mon, 7 Jun 2021 03:13:12 +0000 (20:13 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 8 Jun 2021 04:10:02 +0000 (21:10 -0700)
commit6ea81ac6742303f14cf07143379da6d5f7845792
tree3669a318ebfc0f5e001690e56966a1be22d56d68
parent399eff1aa1af75058765ef6196287f506abe5a68
(REF) Isolate calls to $bao::checkAccess. Prefer CoreUtil::checkAccessDelegate.

Code paths:

* Before: There are many callers to `$bao::checkAccess()`.
* After: There is only one caller to `$bao::checkAccess()` (ie `CoreUtil`).

Delegation mechanics:

* Before: When delegating access-control to another entity, various things invoke  `$bao::checkAccess()`.
* After: When delegating access-control to another entity, various things invoke `CoreUtil::checkAccessDelegated()`
CRM/Contact/AccessTrait.php
CRM/Core/BAO/CustomValue.php
CRM/Core/DynamicFKAccessTrait.php
Civi/Api4/Utils/CoreUtil.php
api/v3/Contribution.php