From 3ad9f4d932dadd8e624d6ddc12bcecc376b0ebb2 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 20 May 2011 16:55:34 +0000 Subject: [PATCH] Hide export link if admin disabled export site-wide --- .../inc/class.importexport_admin_prefs_sidebox_hooks.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 028899007a..43c90628b6 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -117,7 +117,8 @@ class importexport_admin_prefs_sidebox_hooks 'text' => 'Import CSV' ); } - if($cache[$appname]['export']) + $config = config::read('phpgwapi'); + if(($GLOBALS['egw_info']['user']['apps']['admin'] || $config['export_limit'] !== 'no') && $cache[$appname]['export']) { $file['Export CSV'] = array('link' => "javascript:egw_openWindowCentered2('". egw::link('/index.php',array(