Code

Updated ACLs for Spam Server Rules
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Apr 2010 15:02:27 +0000 (15:02 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 12 Apr 2010 15:02:27 +0000 (15:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17591 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/admin/systems/services/spam/class_goSpamServer.inc
gosa-plugins/mail/admin/systems/services/spam/class_goSpamServerRule.inc

index ae3041cc64eebd20df78f9038c2be8f25f40c340..d5e8b6fbe144c25ce64be5638cb81930e4320b80 100644 (file)
@@ -137,7 +137,7 @@ class gospamserver extends goService{
     }
 
     /* Save rules */
-    if(isset($_POST['SaveRule'])){
+    if(isset($_POST['SaveRule']) && $this->dialog instanceOf goSpamServerRule){
       $this->dialog->save_object();
       $msgs = $this->dialog->check();
       if(count($msgs)){
index 9ffa19088635f7ecd069c3a42aa4d1b3aef69b22..37ca7addafe99f8d53cca03c23a286545a91089a 100644 (file)
@@ -35,7 +35,6 @@ class goSpamServerRule extends plugin {
 
        function save_object()
        {
-               plugin::save_object();
                foreach($this->attributes as $attr){
                        if(isset($_POST[$attr])){
                                $this->$attr = $_POST[$attr];