From 47412447f0f611e9464dd3922f8e03ef0a16ab1f Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 30 Dec 2009 17:20:39 +0000 Subject: [PATCH] Reverted changes. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14992 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_departmentManagement.inc | 48 ------------------- 1 file changed, 48 deletions(-) diff --git a/gosa-core/plugins/admin/departments/class_departmentManagement.inc b/gosa-core/plugins/admin/departments/class_departmentManagement.inc index 136c23935..ac40ce062 100644 --- a/gosa-core/plugins/admin/departments/class_departmentManagement.inc +++ b/gosa-core/plugins/admin/departments/class_departmentManagement.inc @@ -107,54 +107,6 @@ class departmentManagement extends management } - - function removeEntryConfirmed($action="",$target=array(),$all=array(), - $altTabClass="",$altTabType="",$altAclCategory="") - { - $types= $this->get_support_departments(); - $headpage = $this->getHeadpage(); - - $tabType = $this->tabType; - $tabClass = $this->tabClass; - $aclCategory = $this->aclCategory; - if(!empty($altTabClass)) $tabClass = $altTabClass; - if(!empty($altTabType)) $tabType = $altTabType; - if(!empty($altAclCategory)) $aclCategory = $altAclCategory; - - @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$target,"Entry removel confirmed!"); - - foreach($this->dns as $key => $dn){ - - // Check permissions, are we allowed to remove this object? - $type = $headpage->getType($dn); - $tabType = $types[$type]['TAB']; - - $acl = $this->ui->get_permissions($dn, $this->aclCategory."/".$this->aclPlugin); - if(preg_match("/d/",$acl)){ - - // Delete the object - $this->dn = $dn; - $this->tabObject= new $tabClass($this->config,$this->config->data['TABS'][$tabType], $this->dn, $aclCategory, true, true); - $this->tabObject->set_acl_base($this->dn); - $this->tabObject->delete (); - $this->tabObject->parent = &$this; - - // Remove the lock for the current object. - del_lock($this->dn); - } else { - msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG); - new log("security","groups/".get_class($this),$dn,array(),"Tried to trick deletion."); - } - } - - // Cleanup - $this->remove_lock(); - $this->closeDialogs(); - } - - - - // Overriden save handler - We've to take care about the department tagging here. protected function saveChanges() { -- 2.30.2