From b65a01e60f124946176c974738f8c01ef4f9a6ff Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 15 Oct 2010 08:59:51 +0000 Subject: [PATCH] Updated Folder Widget -Do not allow to remove the root folder git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20056 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/groupware/FolderWidget/class_FolderWidget.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc index 3a88a3b0c..368e3b06d 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc @@ -257,6 +257,10 @@ class FolderWidget extends plugin */ function removeByBase($base) { + // Do not allow to remove the root base. + // This would mean the account itself was removed. + if($base = $this->rootBase) return; + $this->_recursiveRemoveByBase($this->folderList['recursive'], $base); $this->_recursiveRemoveByBase($this->folderList['linear'], $base); $this->FolderWidgetListing->setFolderList($this->folderList); -- 2.30.2