From: hickert Date: Fri, 24 Jul 2009 12:04:48 +0000 (+0000) Subject: Updated mailMethod X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4a1c2b33bf504185fbc897cbab2b1c8190b45a08;p=gosa.git 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 --- 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'])){