authorise('core.create', 'com_pagebuilderck') || (count($user->getAuthorisedCategories('com_pagebuilderck', 'core.create')))); if ($authorised !== true) { throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'), 403); return false; } // Check for errors. if (! empty($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->menus = $this->get('Menus'); $this->items = $this->get('Items'); parent::display($tpl); } }