Menus created via a handler, at runtime

SVN:trunk[1014]
This commit is contained in:
Romain Quetiez
2010-12-07 14:32:13 +00:00
parent 98cfcc9cb8
commit 59970be867
4 changed files with 40 additions and 16 deletions

View File

@@ -98,7 +98,6 @@ class ApplicationMenu
foreach(self::$aRootMenus as $aMenu)
{
$oMenuNode = self::GetMenuNode($aMenu['index']);
if (($oMenuNode->GetMenuId() == 'AdminTools') && (!UserRights::IsAdministrator())) continue; // Don't display the admin menu for non admin users
if (!$oMenuNode->IsEnabled()) continue; // Don't display a non-enabled menu
$oPage->AddToMenu('<h3>'.$oMenuNode->GetTitle().'</h3>');
$oPage->AddToMenu('<div>');