Marius Cramer
2013-10-14 1139530fbf3fb0fdce1bf5cfee311cd6f0fbf816
interface/web/mail/form/mail_user.tform.php
@@ -38,8 +38,6 @@
*/
global $app;
$app->uses('getconf');
$global_config = $app->getconf->get_global_config();
$form["title"]          = "Mailbox";
$form["description"]    = "";
@@ -232,7 +230,6 @@
   )
);
if ($global_config['mail']['mailbox_show_autoresponder_tab'] === 'y') {
   $form["tabs"]['autoresponder'] = array (
      'title'    => "Autoresponder",
      'width'    => 100,
@@ -286,10 +283,7 @@
      ##################################
      )
   );
}
if ($global_config['mail']['mailbox_show_mail_filter_tab'] === 'y') {
   $form["tabs"]['filter_records'] = array (
      'title'    => "Mail Filter",
      'width'    => 100,
@@ -319,10 +313,9 @@
         )
      )
   );
}
if($_SESSION["s"]["user"]["typ"] == 'admin') {
if ($_SESSION["s"]["user"]["typ"] == 'admin' && $global_config['mail']['mailbox_show_custom_rules_tab'] === 'y') {
   $form["tabs"]['mailfilter'] = array (
      'title'    => "Custom Rules",
      'width'    => 100,
@@ -344,6 +337,8 @@
      ##################################
      )
   );
}
?>