CakeDC\Users\Controller\Component\UsersAuthComponent::_isActionAllowed PHP Method

_isActionAllowed() protected method

Check if the action is in allowedActions array for the controller
protected _isActionAllowed ( array $requestParams = [] ) : boolean
$requestParams array request parameters
return boolean
    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;
    }