From b1e65f073fdb1784193c70ec74d1f564aaee6aa8 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 4 Apr 2008 09:10:08 +0000 Subject: [PATCH] Readded remove_lock git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10205 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc index 89e4e38d6..fdd354938 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoManagement.inc @@ -35,8 +35,7 @@ class sudoManagement extends plugin private $sudotabs = NULL; private $base = ""; - - + /*! \brief */ public function __construct(&$config, &$ui) { /* Save configuration for internal use */ @@ -371,6 +370,13 @@ class sudoManagement extends plugin /* Optionally execute a command after we're done */ $this->postcreate(); } + + public function remove_lock() + { + if (isset($this->sudotabs->dn)){ + del_lock ($this->sudotabs->dn); + } + } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2