Civi::pipe - Introduce `$trusted` flag and `$apiCheckPermissions` option
authorTim Otten <totten@civicrm.org>
Wed, 15 Dec 2021 06:11:43 +0000 (22:11 -0800)
committerTim Otten <totten@civicrm.org>
Thu, 13 Jan 2022 21:15:00 +0000 (13:15 -0800)
commit5e13f3883f8e33fcf4722af265b1db9ae5225506
treea29a5300a252f9be88c73884b373417145db97df
parent6c4b31d47b472054b3850b0beb89a3bde0f4520d
Civi::pipe - Introduce `$trusted` flag and `$apiCheckPermissions` option

* `bool $trusted` is an immutable property of the session that determines whether you
  can request special operations like:
    * Bypassing API permissions
    * Setting the active user without credentials

* `bool $apiCheckPermissions` is a convenience option for `api3` and `api4`.
  This toggles the default value of `checkPermissions` / `check_permissions`
  on API calls.  (It is only applicable to trusted sessions.)
Civi.php
Civi/Pipe/PipeSession.php
Civi/Pipe/PublicMethods.php
tests/phpunit/Civi/Pipe/JsonRpcSessionTest.php