protected function _isAllowed(Controller $controller)
    {
        $action = strtolower($controller->getRequest()->getParam('action'));

        return in_array($action, array_map('strtolower', $this->allowedActions));
    }
protected function _isAllowed(Controller $controller)
    {
        $action = strtolower($controller->getRequest()->getParam('action'));

        return in_array($action, array_map('strtolower', $this->allowedActions));
    }
protected function _isAllowed ( Controller $ controller ) { $ action = strtolower ( $ controller -> getRequest ( ) -> getParam ( 'action' ) ) ; return in_array ( $ action , array_map ( 'strtolower' , $ this -> allowedActions ) ) ; }
Checks whether current action is accessible without authentication.

@param \Cake\Controller\Controller $controller A reference to the instantiating
controller object
@return bool True if action is accessible without authentication else false
Checks whether current action is accessible without authentication .