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'];
if (!isset($this->_View->viewVars['_authUser'])) {
throw new Exception('Variable _authUser containing the user data needs to be passed down. The TinyAuth.Auth component does it automatically, if loaded.');
}
if (empty($this->_View->viewVars['_authUser'])) {
return false;
}
return $this->_check($this->_View->viewVars['_authUser'], $url);
}