From 4a1c2b33bf504185fbc897cbab2b1c8190b45a08 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 24 Jul 2009 12:04:48 +0000 Subject: [PATCH] Updated mailMethod -If we try to add a gosaMailAlternateAddress which is already in use, then display a message. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13952 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/mail/personal/mail/class_mailAccount.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index 34c66cb52..9e3454042 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -367,10 +367,8 @@ class mailAccount extends plugin } if ($valid && ($user= $this->addAlternate ($_POST['alternate_address'])) != ""){ $ui= get_userinfo(); - if ($user != $ui->username){ - msg_dialog::display(_("Error"), msgPool::duplicated(_("Mail address"))." ". - sprintf(_("Address is already in use by user '%s'."), $user), ERROR_DIALOG); - } + msg_dialog::display(_("Error"), msgPool::duplicated(_("Mail address"))." ". + sprintf(_("Address is already in use by user '%s'."), $user), ERROR_DIALOG); } } if (isset($_POST['delete_alternate']) && isset($_POST['alternates_list'])){ -- 2.30.2