From 8ca325184d2b23b2337c97efdcbf0a01454c4ddd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 26 Oct 2003 10:01:38 +0000 Subject: [PATCH] fixed translationTools link if not enabled for user --- etemplate/inc/hook_sidebox_menu.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/etemplate/inc/hook_sidebox_menu.inc.php b/etemplate/inc/hook_sidebox_menu.inc.php index 5a3cc72fef..2c955888cf 100644 --- a/etemplate/inc/hook_sidebox_menu.inc.php +++ b/etemplate/inc/hook_sidebox_menu.inc.php @@ -16,7 +16,12 @@ $file = Array( 'eTemplate Editor' => $GLOBALS['phpgw']->link('/index.php','menuaction=etemplate.editor.edit'), 'DB-Tools' => $GLOBALS['phpgw']->link('/index.php','menuaction=etemplate.db_tools.edit'), - '_NewLine_', // give a newline - 'developer_tools' => $GLOBALS['phpgw']->link('/index.php','menuaction=developer_tools.uilangfile.index'), ); + if (@$GLOBALS['phpgw_info']['user']['apps']['developer_tools']) + { + $file += array( + '_NewLine_', // give a newline + 'developer_tools' => $GLOBALS['phpgw']->link('/index.php','menuaction=developer_tools.uilangfile.index'), + ); + } display_sidebox($appname,$menu_title,$file);