Code

Added permission check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Sep 2010 09:38:09 +0000 (09:38 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 8 Sep 2010 09:38:09 +0000 (09:38 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19562 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_groupware.inc

index 866144dc53059ca491de0e2856a6b179deb18a17..cc3b7b6dc0d8f60182591a2c03de37faa76323ac 100644 (file)
@@ -449,7 +449,9 @@ class groupware extends plugin
             // Get posted flag changes 
             $flagAttrs = array("localDeliveryOnly","dropOwnMails");
             foreach($flagAttrs as $attr){
-                $this->$attr = isset($_POST[$attr]);
+                if($this->acl_is_writeable($attr)){
+                    $this->$attr = isset($_POST[$attr]);
+                }
             }
         }
     }