From: hickert Date: Mon, 7 Jan 2008 06:40:14 +0000 (+0000) Subject: Fixed groupMail. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b1a12e727ba84deed45ffd50bf5f166159a8177d;p=gosa.git Fixed groupMail. -ACL wasn't read correctly git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8230 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/groups/class_groupMail.inc b/plugins/admin/groups/class_groupMail.inc index 41e0eae4e..90092d2ae 100644 --- a/plugins/admin/groups/class_groupMail.inc +++ b/plugins/admin/groups/class_groupMail.inc @@ -238,6 +238,17 @@ class mailgroup extends plugin } } }else{ + /* Load permissions */ + if (isset($this->attrs['acl'])){ + for ($i= 0; $i<$this->attrs['acl']['count']; $i++){ + list($user, $permission)= split(' ', $this->attrs['acl'][$i]); + $this->imapacl[$user]= $permission; + if ($user != "anyone" && $user != "%members%"){ + unset($this->imapacl['']); + } + } + } + foreach($this->imapacl as $user => $permission){ if ($user != "anyone" && $user != "%members%"){ $tmp[$permission][] = $user; @@ -588,7 +599,7 @@ class mailgroup extends plugin if ($nr == $count - 1){ } if ($count > 2){ - $tmp.= ""; } }