From: hickert Date: Wed, 26 Jul 2006 05:09:13 +0000 (+0000) Subject: Fixed kolab posts X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d35434f424dabc0ffcccb093a7c250bdce21807f;p=gosa.git Fixed kolab posts git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4298 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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"); + } + } }