From: hickert Date: Wed, 16 Jul 2008 08:43:11 +0000 (+0000) Subject: Updated Group-Mail X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ac139d796918193672f69aca73019aa9f3f15dc6;p=gosa.git Updated Group-Mail -Keep selected Mail-Server selected, also if we have no permissions to read to current server settings. -Fixed typo in msgPool::requied git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11675 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc index f1772367a..55a2c2a49 100644 --- a/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc +++ b/gosa-plugins/mail/admin/groups/mail/class_groupMail.inc @@ -636,9 +636,19 @@ class mailgroup extends plugin /* Show main page */ $mailserver= array(); + $ui = get_userinfo(); foreach ($this->config->data['SERVERS']['IMAP'] as $key => $val){ + if(!preg_match("/r/",$ui->get_category_permissions($val['server_dn'],"server"))) continue; $mailserver[]= $key; } + + /* Append currently selected server if we are not allowed to view it. + */ + if(isset($this->config->data['SERVERS']['IMAP'][$this->gosaMailServer]) && + !in_array($this->gosaMailServer,$mailserver)){ + $mailserver[] = $this->gosaMailServer; + } + $smarty->assign("mailServers", $mailserver); foreach(array("gosaMailServer", "gosaMailQuota", "perms", "mail", "gosaMailAlternateAddress", "gosaMailForwardingAddress") as $val){ @@ -1072,7 +1082,7 @@ I: Only insider delivery */ } if(empty($this->gosaMailServer)){ - $message[] = msgPool::requried(_("Mail server")); + $message[] = msgPool::required(_("Mail server")); } return ($message);