Hide export link if admin disabled export site-wide

This commit is contained in:
Nathan Gray 2011-05-20 16:55:34 +00:00
parent 3808f6d5e0
commit 3ad9f4d932

View File

@ -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(