From 2736860f1f2740e3d1fceba26d725e6de9ee1675 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 31 Aug 2010 09:55:04 +0000 Subject: [PATCH] Added ACLs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19503 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/groupware/class_groupware.inc | 12 +- .../groupware/personal/groupware/generic.tpl | 236 ++++++++++++------ 2 files changed, 159 insertions(+), 89 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_groupware.inc b/gosa-plugins/groupware/personal/groupware/class_groupware.inc index d5e408092..78ef1b2c0 100644 --- a/gosa-plugins/groupware/personal/groupware/class_groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_groupware.inc @@ -249,13 +249,10 @@ class groupware extends plugin $smarty->assign($attr, $this->$attr); } - /**************** - SMARTY- Assign flags - ****************/ - - /**************** - Smarty- Vacation settings - ****************/ + $plInfo = $this->plInfo(); + foreach($plInfo['plProvidedAcls'] as $acl => $name){ + $smarty->assign($acl."ACL", $this->getacl($acl)); + } $smarty->assign("mailLocations", array("tester")); if (count($this->vacationTemplates)){ @@ -611,6 +608,7 @@ class groupware extends plugin "mailAddress" => _("Mail address"), "mailLocation" => _("Mail location"), "quotaUsage" => _("Quota usage"), + "mailFilter" => _("Mail filter"), "quotaSize" => _("Quota size"), "alternateAddresses" => _("Alternate mail addresses"), "forwardingAddresses" => _("Forwarding mail addresses"), diff --git a/gosa-plugins/groupware/personal/groupware/generic.tpl b/gosa-plugins/groupware/personal/groupware/generic.tpl index 6e7beb490..447b377c3 100644 --- a/gosa-plugins/groupware/personal/groupware/generic.tpl +++ b/gosa-plugins/groupware/personal/groupware/generic.tpl @@ -5,29 +5,47 @@ - + - - + + - + - +
{$must} + {render acl=$mailAddressACL} + + {/render} +
- + {render acl=$mailLocationACL} + + {/render}
{t}Quota usage{/t}{$quotaUsage} + {render acl=$quotaUsageACL} + + {/render} +
MB + {render acl=$quotaSizeACL} + MB + {/render} +
+ {render acl=$mailFilterACL} + + {/render} +
@@ -35,15 +53,23 @@  

- -
- - - + {render acl=$alternateAddressesACL} + +
+ {/render} + {render acl=$alternateAddressesACL} + + {/render} + {render acl=$alternateAddressesACL} + + {/render} + {render acl=$alternateAddressesACL} + + {/render} @@ -58,12 +84,14 @@ @@ -127,15 +169,25 @@ @@ -147,53 +199,73 @@
+ {render acl=$vacationEnabledACL} + {/render} {t}Activate vacation message{/t} @@ -73,51 +101,65 @@   {t}from{/t} - - + {render acl=$vacationStartACL} + + {/render} + {if $vacationStartACL|regex_replace:"/[cdmr]/":"" == "w"} + + {/if} {t}till{/t} - - + {render acl=$vacationStartACL} + + {/render} + {if $vacationStopACL|regex_replace:"/[cdmr]/":"" == "w"} + + {/if}
+ {render acl=$vacationMessageACL} + {/render}
{if $displayTemplateSelector eq "true"} - - + {render acl=$vacationMessageACL} + + {/render} + {render acl=$vacationMessageACL} + + {/render} {/if}
 

- + {render acl=$forwardingAddressesACL} + + {/render}
- -   -   - + {render acl=$forwardingAddressesACL} + + {/render} + {render acl=$forwardingAddressesACL} +   + {/render} + {render acl=$forwardingAddressesACL} +   + {/render} + {render acl=$forwardingAddressesACL} + + {/render}
-- 2.30.2
- + {render acl=$mailBoxWarnLimitACL} + + {/render} - {t}MB{/t} + {render acl=$mailBoxWarnLimitACL} + {t}MB{/t} + {/render}
- + {render acl=$mailBoxSendSizelimitACL} + + {/render} - {t}MB{/t} + {render acl=$mailBoxSendSizelimitACL} + {t}MB{/t} + {/render}
- + {render acl=$mailBoxHardSizelimitACL} + + {/render} - {t}MB{/t} + {render acl=$mailBoxHardSizelimitACL} + {t}MB{/t} + {/render}
- + {render acl=$mailBoxAutomaticRemovalACL} + + {/render} - {t}days{/t} + {render acl=$mailBoxAutomaticRemovalACL} + {t}days{/t} + {/render}
- + {render acl=$localDeliveryOnlyACL} + + {/render} {t}User is only allowed to send and receive local mails{/t}
- + {render acl=$dropOwnMailsACL} + + {/render} {t}No delivery to own mailbox{/t}