summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dec26b5)
raw | patch | inline | side by side (parent: dec26b5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 05:09:13 +0000 (05:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 26 Jul 2006 05:09:13 +0000 (05:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4298 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/connectivity/class_kolabAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index 8fe31efabcb310f335f12cbdd9c64fd3d146cdcc..9d8899e30553cbc64db47a97aba95b3b95d8030e 100644 (file)
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 {
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");
+ }
+ }
}