diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index ebeceb4a86..a723aa10ae 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -278,6 +278,18 @@ class mail_compose unset($actions['save2vfs']); unset($actions['selectFromVFSForCompose']); } + if (!isset($GLOBALS['egw_info']['user']['apps']['infolog'])) + { + unset($actions['to_infolog']); + } + if (!isset($GLOBALS['egw_info']['user']['apps']['tracker'])) + { + unset($actions['to_tracker']); + } + if (!isset($GLOBALS['egw_info']['user']['apps']['calendar'])) + { + unset($actions['to_calendar']); + } return $actions; } diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 6988b7d14b..b34eccdb16 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -615,7 +615,7 @@ class mail_ui } // send configured image proxy to client-side $content['image_proxy'] = self::image_proxy(); - + $content['no_vfs'] = !$GLOBALS['egw_info']['user']['apps']['filemanager']; return $etpl->exec('mail.mail_ui.index',$content,$sel_options,$readonlys,$preserv); } @@ -2570,6 +2570,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2); { $attachmentHTML[$key]['classSaveAllPossiblyDisabled'] = ""; } + if (!$GLOBALS['egw_info']['user']['apps']['filemanager']) $attachmentHTML[$key]['no_vfs'] = true; } $attachmentHTMLBlock="