NextDom\Ajax\BaseAjax::checkAccessOrFail
Check access of the user. Fail on problem.
Signature
protected function checkAccessOrFail([boolean
$mustBeConnected = true,
[string|null
$neededRights = NULL]] )
Parameters
$mustBeConnected
— boolean- True if the user must be connected
$neededRights
— object- Needed rights for access