Don't display the admin menu for non-admin users

SVN:trunk[514]
This commit is contained in:
Denis Flaven
2010-06-30 17:22:34 +00:00
parent 9a7159cc3d
commit c93153f28c
2 changed files with 10 additions and 12 deletions

View File

@@ -98,6 +98,7 @@ 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
$oPage->AddToMenu('<h3><a href="'.$oMenuNode->GetHyperlink($aExtraParams).'">'.$oMenuNode->GetTitle().'</a></h3>');
$oPage->AddToMenu('<div>');
$aChildren = self::GetChildren($aMenu['index']);