From a8f88713f5953ea1b47bfd74cdb02ffd608e1abc Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 2 Jul 2008 13:08:02 +0000 Subject: [PATCH] Added ACL check to personal mail account- -Avoid selection of mail servers we are not allowed to view, but keep already selected server. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11512 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/mail/personal/mail/class_mailAccount.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/mail/personal/mail/class_mailAccount.inc b/gosa-plugins/mail/personal/mail/class_mailAccount.inc index f2f332f20..61982e467 100644 --- a/gosa-plugins/mail/personal/mail/class_mailAccount.inc +++ b/gosa-plugins/mail/personal/mail/class_mailAccount.inc @@ -241,8 +241,12 @@ class mailAccount extends plugin /* Get available mailserver */ $mailserver= array(); + $ui = get_userinfo(); foreach ($this->config->data['SERVERS']['IMAP'] as $key => $val){ - $mailserver[]= $key; + if( $this->gosaMailServer == $key || + preg_match("/r/",$ui->get_permissions($val['server_dn'],"server/goImapServer",""))){ + $mailserver[]= $key; + } } /* -- 2.30.2