From: hickert Date: Tue, 31 Aug 2010 09:26:30 +0000 (+0000) Subject: Updated ACLs and groupware template X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=71240215a63bcefb8d344b4ae52b6e359c71cc9d;p=gosa.git Updated ACLs and groupware template git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19501 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc index a2228e11e..d5e408092 100644 --- a/gosa-plugins/groupware/personal/groupware/class_groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_groupware.inc @@ -25,8 +25,13 @@ class groupware extends plugin "mailBoxHardSizelimitValue", "mailBoxAutomaticRemovalEnabled", "mailBoxAutomaticRemovalValue", + "localDeliveryOnly", + "dropOwnMails" ); + var $flagAttrinutes = array("vacationEnabled","mailBoxWarnLimitEnabled","mailBoxSendSizelimitEnabled", + "mailBoxHardSizelimitEnabled","mailBoxAutomaticRemovalEnabled","localDeliveryOnly","dropOwnMails"); + var $mailAddressSelectDialog = NULL; var $vacationTemplates = array(); @@ -48,6 +53,8 @@ class groupware extends plugin var $mailBoxHardSizelimitValue = ""; var $mailBoxAutomaticRemovalEnabled = FALSE; var $mailBoxAutomaticRemovalValue = ""; + var $localDeliveryOnly = FALSE; + var $dropOwnMails = FALSE; function __construct ($config, $dn= NULL) { @@ -268,6 +275,17 @@ class groupware extends plugin /* Save data to object */ function save_object() { + if(isset($_POST['groupwarePluginPosted'])){ + foreach($this->attributes as $attr){ + if(isset($_POST[$attr])){ + $this->$attr = get_post($attr); + } + } + + foreach($this->flagAttrinutes as $attr){ + $this->$attr = isset($_POST[$attr]); + } + } } @@ -604,6 +622,8 @@ class groupware extends plugin "mailBoxSendSizelimit" => _("Send sizelimit"), "mailBoxHardSizelimit" => _("Hard sizelimit"), "mailBoxAutomaticRemoval" => _("Automatic mail removal"), + "localDeliveryOnly" => _("Local delivery only"), + "dropOwnMails" => _("Drop own mails") ) )); } diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl index 73c9567dc..9fb274d9a 100644 --- a/gosa-plugins/groupware/personal/groupware/generic.tpl +++ b/gosa-plugins/groupware/personal/groupware/generic.tpl @@ -177,16 +177,21 @@ - {t}User is only allowed to send and receive local mails{/t} - + {t}No delivery to own mailbox{/t} + + +