/** * check user can view the read only element & view in table view * If user logged in return false * @return bol can view or not */ function canView() { $user = JFactory::getUser(); $params = $this->getParams(); if ($user->id != 0) { if ($params->get('captcha-showloggedin', 0) == 0) { return false; } } return parent::canView(); }