fixed translationTools link if not enabled for user

This commit is contained in:
Ralf Becker 2003-10-26 10:01:38 +00:00
parent 1f40b7c8fa
commit 8ca325184d

View File

@ -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'),
);
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);