From d35434f424dabc0ffcccb093a7c250bdce21807f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Jul 2006 05:09:13 +0000 Subject: [PATCH] Fixed kolab posts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4298 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../connectivity/class_kolabAccount.inc | 45 ++++++++++--------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc index 8fe31efab..9d8899e30 100644 --- a/plugins/personal/connectivity/class_kolabAccount.inc +++ b/plugins/personal/connectivity/class_kolabAccount.inc @@ -324,12 +324,16 @@ class kolabAccount extends plugin if (isset($_POST['connectivityTab'])){ if(isset($_POST["kolabState"])){ - $this->is_account = true; + if($this->acl_is_createable()){ + $this->is_account = true; + } }else{ - $this->is_account = false; + if($this->acl_is_removeable()){ + $this->is_account = false; + } } - - if (chkacl('unrestrictedMailSize', $this->acl == "")){ + + if ($this->acl_is_writeable("unrestrictedMailSize")){ if (isset($_POST['unrestrictedMailSize']) && $_POST['unrestrictedMailSize'] == 1){ $this->unrestrictedMailSize= 1; } else { @@ -341,25 +345,26 @@ class kolabAccount extends plugin plugin::save_object(); /* Save changes done in invitation policies */ - $nr= 0; - $this->kolabInvitationPolicy= array(); - while (isset($_POST["policy$nr"])){ + if($this->acl_is_writeable("kolabInvitationPolicy")){ + $nr= 0; + $this->kolabInvitationPolicy= array(); + while (isset($_POST["policy$nr"])){ + + /* Anonymous? */ + if (!isset($_POST["address$nr"])){ + $this->kolabInvitationPolicy[]= $_POST["policy$nr"]; + } else { + $this->kolabInvitationPolicy[]= $_POST["address$nr"].": ".$_POST["policy$nr"]; + } - /* Anonymous? */ - if (!isset($_POST["address$nr"])){ - $this->kolabInvitationPolicy[]= $_POST["policy$nr"]; - } else { - $this->kolabInvitationPolicy[]= $_POST["address$nr"].": ".$_POST["policy$nr"]; + $nr++; } - - $nr++; - } - - /* If this one is empty, preset with ACT_MANUAL for anonymous users */ - if (count ($this->kolabInvitationPolicy) == 0){ - $this->kolabInvitationPolicy= array("ACT_MANUAL"); - } + /* If this one is empty, preset with ACT_MANUAL for anonymous users */ + if (count ($this->kolabInvitationPolicy) == 0){ + $this->kolabInvitationPolicy= array("ACT_MANUAL"); + } + } } -- 2.30.2