From: hickert Date: Wed, 28 Oct 2009 16:39:49 +0000 (+0000) Subject: Do not allow to remove the ldap base: X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5f538896f498afd24be91b2045423eedd6ddf8dd;p=gosa.git Do not allow to remove the ldap base: git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14681 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index d419dd99d..db86b5faa 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -71,16 +71,20 @@ class departmentManagement extends management { $types= $this->get_support_departments(); $type = $this->headpage->getType($target[0]); - management::editEntry($action,$target,$all,$this->tabClass,$types[$type]['TAB'],$this->aclCategory); + return(management::editEntry($action,$target,$all,$this->tabClass,$types[$type]['TAB'],$this->aclCategory)); } - function openEntry($action,$entry) { $this->headpage->setBase(array_pop($entry)); } + protected function removeEntryRequested($action="",$target=array(),$all=array()) + { + $target = array_remove_entries(array($this->config->current['BASE']),$target); + return(management::removeEntryRequested($action,$target,$all)); + } static function filterDepLabel($row,$dn,$params,$ou,$pid,$base) {