Code

Fixed groupMail.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Jan 2008 06:40:14 +0000 (06:40 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Jan 2008 06:40:14 +0000 (06:40 +0000)
-ACL wasn't read correctly

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@8230 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/groups/class_groupMail.inc

index 41e0eae4e28111375c554715c6496ff35a37e75e..90092d2ae3325faee0f4de4b592552419ec447d3 100644 (file)
@@ -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.= "<input type=submit value=\""._("Remove")."\" ".
+          $tmp.= "</td><td><input type=submit value=\""._("Remove")."\" ".
             "name=\"del_$nr\" $perm></td></tr>";
         }
       }