summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5545bec)
raw | patch | inline | side by side (parent: 5545bec)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Nov 2007 12:51:57 +0000 (12:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 22 Nov 2007 12:51:57 +0000 (12:51 +0000) |
-Some minor fixes, about default acls for newly created entries.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7854 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7854 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/groups/class_groupMail.inc | patch | blob | history |
index 3dbdf1b6265d52b427af43d320e252e48d39b1ea..60d3ae267b03553aa7034ef2c20e0af2d50fc84f 100644 (file)
}
/* Append an empty entry, for special acl handling */
if(count($this->imapacl)==2){
- $this->imapacl[''] ="";
+ $this->imapacl[''] ="lrsw";
+ $this->indexed_user[] = '';
}
}else{ // Not kolab
/* Add ACL? */
if (isset($_POST["add_acl"])){
- $this->imapacl[""]= "l";
+ $this->imapacl[""]= "lrsw";
}
foreach ($this->indexed_user as $nr => $user){
if (isset($_POST["del_$nr"])){
$tmp.= "</select> ";
if ($nr == $count - 1){
}
- if ($count > 3){
+ if ($count > 2){
$tmp.= "<input type=submit value=\""._("Remove")."\" ".
"name=\"del_$nr\" $perm></td></tr>";
}
/* In case of kolab methods add acl attribute too */
if(preg_match("/olab/i",$this->mmethod)){
$this->attrs['acl'][]= $name." ".$acl;
+ unset($this->imapacl[$user]);
}
$this->imapacl[$name] = $acl;
}else{
$this->imapacl[$user] = $acl;
}
}
-
+
if ((!$this->is_template)&&(!empty($this->gosaMailServer))){
$method= new $this->method($this->config);
$method->fixAttributesOnStore($this);