public function hasAccess(array $url)
{
$url += ['prefix' => !empty($this->request->params['prefix']) ? $this->request->params['prefix'] : null, 'plugin' => !empty($this->request->params['plugin']) ? $this->request->params['plugin'] : null, 'controller' => $this->request->params['controller'], 'action' => 'index'];
return $this->_check((array) $this->Auth->user(), $url);
}