From: hickert Date: Mon, 11 Oct 2010 07:42:04 +0000 (+0000) Subject: Updated folder Test class X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=08a988a789aefe42d0e78ee305d76702587da899;p=gosa.git Updated folder Test class git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19962 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_folderTest.inc b/gosa-plugins/groupware/personal/groupware/class_folderTest.inc index eb998211b..c41bd7240 100644 --- a/gosa-plugins/groupware/personal/groupware/class_folderTest.inc +++ b/gosa-plugins/groupware/personal/groupware/class_folderTest.inc @@ -1,8 +1,25 @@ folderList = $this->getFolderList(); } + function getPermissions() + { + $ret[GROUPWARE_RIGHTS_NONE] = _("None"); + $ret[RIGHTS_GROUPWARE_READ] = _("Read"); + $ret[RIGHTS_GROUPWARE_POST] = _("Post"); + $ret[GROUPWARE_RIGHTS_APPEND] = _("Append"); + $ret[RIGHTS_GROUPWARE_WRITE] = _("Write"); + $ret[GROUPWARE_RIGHTS_ALL] = _("All"); + return($ret); + } function execute() { @@ -27,7 +54,8 @@ class FolderTest extends plugin } } if(isset($_POST['configureFolder'])){ - $this->FolderWidget = new FolderWidget($this->config,$this->folderList, ""); + $this->FolderWidget = new FolderWidget($this->config,$this->folderList, "user/wiwu/Inbox"); + $this->FolderWidget->setPermissions($this->getPermissions()); $this->FolderWidget->acl_base = $this->acl_base; $this->FolderWidget->acl_category = $this->acl_category; }