CoreUtil::checkAccess() - Accept optional argument $userID
authorTim Otten <totten@civicrm.org>
Fri, 4 Jun 2021 23:42:29 +0000 (16:42 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 8 Jun 2021 04:10:02 +0000 (21:10 -0700)
commit399eff1aa1af75058765ef6196287f506abe5a68
treed5f54ef16aa8c423a471442bd8cbb5d069081ce6
parent63a2492e2fbd35bfbe70c3a7e9b76fd52a12ff4f
CoreUtil::checkAccess() - Accept optional argument $userID

Technically, there is an inheritable contract-change here - modifying
`isAuthorized()` to accept the current user ID. However, I grepped
universe for references:

```
[bknix-min:~/bknix/build/universe] grep -ri isAuthorized $( find -name Civi )
```

And all references were internal to `civicrm-core.git`.  This makes some
sense, given the available alternative extension-points
(`Civi\Api4\$ENTITY::permissions()` and `civi.api.authorize`).
Civi/Api4/Action/GetActions.php
Civi/Api4/Event/Subscriber/PermissionCheckSubscriber.php
Civi/Api4/Generic/AbstractAction.php
Civi/Api4/Generic/CheckAccessAction.php
Civi/Api4/Utils/CoreUtil.php
ext/oauth-client/Civi/Api4/Action/OAuthContactToken/OnlyModifyOwnTokensTrait.php