Started adding the Assistant GUI ;)

This commit is contained in:
2020-01-03 05:36:47 +02:00
parent 46e52db097
commit 185dad4273
24 changed files with 1881 additions and 8 deletions

View File

@ -5707,6 +5707,11 @@ abstract class ComponentbuilderHelper
$user = JFactory::getUser();
// load the submenus to sidebar
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_DASHBOARD'), 'index.php?option=com_componentbuilder&view=componentbuilder', $submenu === 'componentbuilder');
// Access control (assistant.submenu).
if ($user->authorise('assistant.submenu', 'com_componentbuilder'))
{
JHtmlSidebar::addEntry(JText::_('COM_COMPONENTBUILDER_SUBMENU_ASSISTANT'), 'index.php?option=com_componentbuilder&view=assistant', $submenu === 'assistant');
}
// Access control (compiler.submenu).
if ($user->authorise('compiler.submenu', 'com_componentbuilder'))
{