If user does not have permission for Import / Export, skip all importexport sidebox links

This commit is contained in:
Nathan Gray 2011-04-06 22:47:49 +00:00
parent 5325043b71
commit 927528e2ad

View File

@ -87,6 +87,8 @@ class importexport_admin_prefs_sidebox_hooks
* Called from framework so Import / Export can add links into other apps' sidebox.
*/
public static function other_apps() {
if(!$GLOBALS['egw_info']['user']['apps']['importexport']) return array();
$appname = $GLOBALS['egw_info']['flags']['currentapp'];
$cache = egw_cache::getCache(egw_cache::SESSION, 'importexport', 'sidebox_links');