From 223968fc5e100872475c4aa2c292a45cf36c6591 Mon Sep 17 00:00:00 2001 From: hzerres Date: Mon, 22 Nov 2010 15:55:21 +0000 Subject: [PATCH] (groupware) acl display repaired. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20325 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../groupware/personal/groupware/class_Groupware.inc | 12 ++++-------- .../personal/groupware/class_GroupwareDao.inc | 4 ++-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index ebb823412..99a2f6e74 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -331,10 +331,8 @@ class Groupware extends plugin else{ $this->mailFolderChanges = $this->FolderWidget->save(); } - $this->folderSaverLaterObsolete(); - + $this->folderSave(); $this->FolderWidget = NULL; - } } @@ -947,9 +945,8 @@ class Groupware extends plugin msg_dialog::display(_("Error"),$message."
".sprintf(_("Error was: '%s'."),$this->rpcErrorMessage),ERROR_DIALOG); } } - - $this->folderSaverLaterObsolete($this->uid); - + //Todo: Remove this + $this->folderSave($this->uid); } //checks for feature "quotaUsage" //not to be saved @@ -969,7 +966,7 @@ class Groupware extends plugin /*! \brief TODO remove this function later */ - function folderSaverLaterObsolete($id){ + function folderSave($id){ if($this->isFeatureEnabled("mailFolder")&& $this->hasFeaturebeenChanged("mailFolder")){ //is sorting necessary? //Find folders to add @@ -1000,7 +997,6 @@ class Groupware extends plugin $defAcls = GroupwareDefinitions::getDefaultFolderACLs(); $memberListToBeSaved = array_merge($defAcls, $memberlist["acls"] ); } - } else{ if(array_differs($memberlist["acls"], $this->mailFolderChanges[$folder]["acls"])){ diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc index 338ef6e3e..67d53be10 100644 --- a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc +++ b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc @@ -393,7 +393,7 @@ class GroupwareDao{ $vacArray = $this->get("vacationMessage", array($uid)); $resultArr["vacationMessage"] = $vacArray["message"]; $resultArr["vacationEnabled"] = !empty($resultArr["vacationMessage"]); - } + } return $resultArr; } private function translateGwAclsToGosaAcls($compFolders){ @@ -408,7 +408,7 @@ class GroupwareDao{ "type"=>"user" ); if(empty($fAcl)){ - $resultArr[$fName]["acls"] = GROUPWARE_RIGHTS_NONE; + $aclLine["acl"] = GROUPWARE_RIGHTS_NONE; } else{ $resultArr[$fName]["acls"] = $folderAclDef[$fAcl]; -- 2.30.2