summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 871dcfd)
raw | patch | inline | side by side (parent: 871dcfd)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 11:12:59 +0000 (11:12 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 11:12:59 +0000 (11:12 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19620 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_groupware.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc
index 430e3a904b0eb9d98d3ac9b2e82899bd7d680ff9..0249568f049b12ac7a96bc65457492db745dd146 100644 (file)
}
// Get ui modifications and store them in the class.
- foreach($this->attributes as $attr){
+ $testAttrs = array("mailAddress","mailLocation","quotaUsage","quotaSize",
+ "alternateAddresses","forwardingAddresses","vacationEnabled","vacationStart",
+ "vacationStop","vacationMessage");
+ foreach($testAttrs as $attr){
if(isset($_POST[$attr]) && $this->acl_is_writeable($attr)){
$this->$attr = get_post($attr);
}
}
- /*
- * TODO: ACL check is missing
- */
- echo 'ACL checks missing!';
- foreach($this->flagAttributes as $attr){
+ // Detect checkbox states
+ $checkAttrs = array("mailBoxWarnLimit","mailBoxSendSizelimit",
+ "mailBoxHardSizelimit","mailBoxAutomaticRemoval");
+ foreach($checkAttrs as $boxname){
+ if($this->acl_is_writeable($boxname)){
+ $v = $boxname."Value";
+ $e = $boxname."Enabled";
+ $this->$e = isset($_POST[$e]);
+ if($this->$e){
+ $this->$v = get_post($v);
+ }
+ }
+ }
+
+ // Get posted flag changes
+ $flagAttrs = array("localDeliveryOnly","dropOwnMails");
+ foreach($flagAttrs as $attr){
$this->$attr = isset($_POST[$attr]);
}
}