/** * (non-PHPdoc). * * @see LibBaseViewJson::display() */ public function display() { if (!$this->_state->getItem()) { throw new LibBaseControllerExceptionUnauthorized('User is not logged in'); } else { return parent::display(); } }