Cake\Controller\Component\AuthComponent::_isAllowed PHP Method

_isAllowed() protected method

Checks whether current action is accessible without authentication.
protected _isAllowed ( Controller $controller ) : boolean
$controller Cake\Controller\Controller A reference to the instantiating controller object
return boolean True if action is accessible without authentication else false
    protected function _isAllowed(Controller $controller)
    {
        $action = strtolower($controller->request->params['action']);
        return in_array($action, array_map('strtolower', $this->allowedActions));
    }