From a01b78c4a8b4fe2543fdc058237c72fca52a5315 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 26 Sep 2006 06:48:34 +0000 Subject: [PATCH] fixed spam server service git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4772 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_goSpamServer.inc | 11 +++++++---- plugins/admin/systems/goSpamServer.tpl | 2 -- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/admin/systems/class_goSpamServer.inc b/plugins/admin/systems/class_goSpamServer.inc index 5f4618d15..77b7d0d9a 100644 --- a/plugins/admin/systems/class_goSpamServer.inc +++ b/plugins/admin/systems/class_goSpamServer.inc @@ -299,10 +299,13 @@ class gospamserver extends goService{ /* Check flags */ foreach($this->Flags as $flag){ $var = "saFlags".$flag; - if(isset($_POST[$var])){ - $this->$var = TRUE; - }else{ - $this->$var = FALSE; + + if($this->acl_is_writeable($var)){ + if(isset($_POST[$var])){ + $this->$var = TRUE; + }else{ + $this->$var = FALSE; + } } } } diff --git a/plugins/admin/systems/goSpamServer.tpl b/plugins/admin/systems/goSpamServer.tpl index 99e408f1c..f69b879d4 100644 --- a/plugins/admin/systems/goSpamServer.tpl +++ b/plugins/admin/systems/goSpamServer.tpl @@ -108,9 +108,7 @@
-{render acl=$saTrustedNetworksACL} {$divRules}
-{/render} {render acl=$saTrustedNetworksACL} {/render} -- 2.30.2