forked from extern/egroupware
If user is admin, show the admin Import/Export sidebox with the definition list
This commit is contained in:
parent
5aaaca3c81
commit
69c2466ed3
@ -54,7 +54,7 @@ class importexport_admin_prefs_sidebox_hooks
|
|||||||
{
|
{
|
||||||
$file['Define imports|exports'] = egw::link('/index.php',array(
|
$file['Define imports|exports'] = egw::link('/index.php',array(
|
||||||
'menuaction' => 'importexport.importexport_definitions_ui.index',
|
'menuaction' => 'importexport.importexport_definitions_ui.index',
|
||||||
),'preferences');
|
),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences');
|
||||||
}
|
}
|
||||||
if ($location == 'preferences')
|
if ($location == 'preferences')
|
||||||
{
|
{
|
||||||
@ -207,7 +207,7 @@ this.value = \'\'"';
|
|||||||
{
|
{
|
||||||
$file['Define imports|exports'] = egw::link('/index.php',array(
|
$file['Define imports|exports'] = egw::link('/index.php',array(
|
||||||
'menuaction' => 'importexport.importexport_definitions_ui.index',
|
'menuaction' => 'importexport.importexport_definitions_ui.index',
|
||||||
), 'preferences');
|
),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences');
|
||||||
}
|
}
|
||||||
if($file) display_sidebox($appname,lang('importexport'),$file);
|
if($file) display_sidebox($appname,lang('importexport'),$file);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user