protected function _isActionAllowed($requestParams = [])
{
if (empty($requestParams['action'])) {
return false;
}
$action = strtolower($requestParams['action']);
if (in_array($action, array_map('strtolower', $this->_registry->getController()->Auth->allowedActions))) {
return true;
}
return false;
}