From 69c2466ed31c2886161edd8d7d8a73e243a5393f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 3 Dec 2012 21:46:55 +0000 Subject: [PATCH] If user is admin, show the admin Import/Export sidebox with the definition list --- .../inc/class.importexport_admin_prefs_sidebox_hooks.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php index dddd11edad..7a67f2b464 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -54,7 +54,7 @@ class importexport_admin_prefs_sidebox_hooks { $file['Define imports|exports'] = egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', - ),'preferences'); + ),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences'); } if ($location == 'preferences') { @@ -207,7 +207,7 @@ this.value = \'\'"'; { $file['Define imports|exports'] = egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', - ), 'preferences'); + ),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences'); } if($file) display_sidebox($appname,lang('importexport'),$file); }