forked from extern/egroupware
If user does not have permission for Import / Export, skip all importexport sidebox links
This commit is contained in:
parent
5325043b71
commit
927528e2ad
@ -87,6 +87,8 @@ class importexport_admin_prefs_sidebox_hooks
|
|||||||
* Called from framework so Import / Export can add links into other apps' sidebox.
|
* Called from framework so Import / Export can add links into other apps' sidebox.
|
||||||
*/
|
*/
|
||||||
public static function other_apps() {
|
public static function other_apps() {
|
||||||
|
if(!$GLOBALS['egw_info']['user']['apps']['importexport']) return array();
|
||||||
|
|
||||||
$appname = $GLOBALS['egw_info']['flags']['currentapp'];
|
$appname = $GLOBALS['egw_info']['flags']['currentapp'];
|
||||||
$cache = egw_cache::getCache(egw_cache::SESSION, 'importexport', 'sidebox_links');
|
$cache = egw_cache::getCache(egw_cache::SESSION, 'importexport', 'sidebox_links');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user