From 38e5629e23f7667c3eb364a5b75e832eacbb5f64 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Oct 2010 12:12:34 +0000 Subject: [PATCH] Updated ACLs for the distribution plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19973 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_DistributionList.inc | 28 +++++++++++++++++++ .../ogroups/DistributionList/generic.tpl | 4 +-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc index 642ab2f3b..0641fbc1f 100644 --- a/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc +++ b/gosa-plugins/groupware/admin/ogroups/DistributionList/class_DistributionList.inc @@ -132,11 +132,39 @@ class DistributionList extends plugin // Generate HTML output $smarty = get_smarty(); $smarty->assign('rpcError' , $this->rpcError); + foreach(array("primaryMailAddress","alternateAddresses") as $attr){ + $smarty->assign("{$attr}ACL", $this->getacl($attr)); + $smarty->assign($attr, set_post($this->$attr)); + } + + $smarty->assign("memberList", set_post($this->memberList)); $smarty->assign('rpcErrorMessage' , $this->rpcErrorMessage); return($display.$smarty->fetch(get_template_path('DistributionList/generic.tpl', TRUE))); } + /*! \brief ACL settings + */ + static function plInfo() + { + return (array( + "plShortName" => _("Distribution list"), + "plDescription" => _("Groupware distribution lists"), + "plSelfModify" => FALSE, + "plDepends" => array("ogroup"), // This plugin depends on + "plPriority" => 4, // Position in tabs + "plSection" => array("administration"), + "plCategory" => array("ogroups"), + "plOptions" => array(), + "plProvidedAcls" => array( + "primaryMailAddress" => _("Mail address"), + "alternateAddresses" => _("Alternate mail addresses")) + )); + } + + + + function save_object() { diff --git a/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl b/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl index 1279dbb13..806cd79af 100644 --- a/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl +++ b/gosa-plugins/groupware/admin/ogroups/DistributionList/generic.tpl @@ -4,8 +4,8 @@ {t}Mail address{/t}: - {render acl=$primaryMailACL} - + {render acl=$primaryMailAddressACL} + {/render} -- 2.30.2