private function authenticateRoute(Route $route) {

		$auth = $route->getAuth();

		// authentication required?

		if(is_null($auth)) {

			return true;

		}

		if(!$this->authenticator) {
			
			$this->authenticator = new DefaultRouteAuthenticator();

		}

		return $this->authenticator->authenticate($route, Application::getInstance()->getCurrentUser());

	}
private function authenticateRoute(Route $route) {

		$auth = $route->getAuth();

		// authentication required?

		if(is_null($auth)) {

			return true;

		}

		if(!$this->authenticator) {
			
			$this->authenticator = new DefaultRouteAuthenticator();

		}

		return $this->authenticator->authenticate($route, Application::getInstance()->getCurrentUser());

	}
private function authenticateRoute ( Route $ route ) { $ auth = $ route -> getAuth ( ) ; // authentication required? if ( is_null ( $ auth ) ) { return true ; } if ( ! $ this -> authenticator ) { $ this -> authenticator = new DefaultRouteAuthenticator ( ) ; } return $ this -> authenticator -> authenticate ( $ route , Application :: getInstance ( ) -> getCurrentUser ( ) ) ; }
check whether authentication level required by route is met by
currently active user

@param Route $route
@return boolean
@throws \vxPHP\Application\Exception\ApplicationException
check whether authentication level required by route is met by currently active user