diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc b/trunk/gosa-plugins/goto/admin/systems/goto/class_terminalService.inc
index 17be75702095ed66594d8929d403cc8a7bca07f4..b4dc15460188e29f5cbc6bf214d4336b4b0e7e1b 100644 (file)
function remove_from_parent()
{
+ /* Cancel if there's nothing to do here */
+ if ((!$this->acl_is_removeable())){
+ return;
+ }
+
+ /* Remove and write to LDAP */
+ plugin::remove_from_parent();
+ $ldap = $this->config->get_ldap_link();
+ $ldap->cd($this->dn);
+ $this->cleanup();
+ $ldap->modify($this->attrs);
new log("remove","terminal/".get_class($this),$this->dn,array_keys($this->attrs));
$this->handle_post_events("remove");
}