summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 05fb862)
raw | patch | inline | side by side (parent: 05fb862)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 May 2008 12:59:27 +0000 (12:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 May 2008 12:59:27 +0000 (12:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10896 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc
index dd69ef212672992b2b5ee71db66946e096920e56..e8c02974917c798c5e040380c7c8fa0b4a0a89e0 100644 (file)
/* Sudo has been saved successfully, remove lock from LDAP. */
if ($this->dn != "new"){
- del_lock ($this->dn);
+ $this->remove_lock();
}
unset ($this->sudotabs);
$this->sudotabs= NULL;
msg_dialog::display(_("Permission error"), msgPool::permDelete(), ERROR_DIALOG);
new log("security","sudo/".get_class($this),$dn,array(),"Tried to trick deletion.");
}
- /* Remove lock file after successfull deletion */
- del_lock ($dn);
- unset($this->dns[$key]);
}
+
+ /* Remove lock file after successfull deletion */
+ $this->remove_lock();
+ $this->dns = array();
}
/* Remove lock */
if(isset($_POST['delete_sudo_cancel'])){
- del_lock ($this->dns);
- unset($this->dns);
+ $this->remove_lock();
+ $this->dns = array();
}
/********************
/* Cancel dialogs */
if (isset($_POST['edit_cancel']) && is_object($this->sudotabs)){
- if(isset($this->sudotabs->dn)){
- del_lock ($this->sudotabs->dn);
- }
- unset ($this->sudotabs);
+ $this->remove_lock();
$this->sudotabs= NULL;
session::un_set('objectinfo');
}